Go To Top button

Post Reply
User avatar
Asobig
Advisor
Advisor
Posts: 72
Joined: Mon Aug 21, 2017 7:05 am
Location: Almere
Station model: Davis Vantage VP2+
Software: Meteobridge (Red)
Contact:

Go To Top button

Post by Asobig » Fri May 22, 2020 5:10 pm

I noticed that the 'Go to Top' button is not in front of the topmenu (at least with a pagesize of 95%) and that there is an error message in the log.

To correct both issues, you can do the following:

Open IndexDesktop.php

Change line 582 from:

Code: Select all

<a href="" id="gotop" style="display: none;">
to:

Code: Select all

<a href="" id="gotop" style="display: none;z-index: 100;">
And line 905 from:

Code: Select all

$("#gotop").scrollToTop();
to:

Code: Select all

$("#gotop").scrollTop();
Greetings,

Gerard

User avatar
John B
Forecaster
Forecaster
Posts: 211
Joined: Sun Aug 20, 2017 11:59 pm
Location: Blaxland, N.S.W., Australia
Station model: La Crosse WS2355
Software: Weather Display
Contact:

Re: Go To Top button

Post by John B » Sun May 24, 2020 3:24 am

Thanks, Gerard, that works quite well. It works on my desktop machines and also on a small screen one (260mm).
Your time and trouble in investigating and correcting the facility is much appreciated.

Regards,
John B

Post Reply