Fordson gototop

Fordson gototop

bruno neves - келді
Number of replies: 6

Hello,


i installed last beautiful Fordson theme but cannot find the gototop icon.

Can anyone help me please?


thanks

In reply to bruno neves

Re: Fordson gototop

Chris Kenniburg - келді
Plugin developers қатысушының суреті
What version of Moodle and Fordson?  

At one time there was a setting to turn that on/off but in recent versions it is just on.  It should just be there.   Have you tried clearing Moodle Cache and then forcing a re-load of the page using CTRL + F5 (which will reload cache in your browser). 

Chris

In reply to bruno neves

Re: Fordson gototop

Beat Schweitzer - келді

Hello,

I have the same issue. I am using the latest Moodle Version (3.6.2+ / Build: 20190118) and Fordson v3.6 release 1.2 (2019111000). Cache cleaned and reloaded. No effect.

The button is there and is working but it is not visibale. The console says opacity is 0. Increasing it turns the button visible.

If helpfulI can give you access to the server to investigate.

Best regards,

Beat

 

In reply to bruno neves

Re: Fordson gototop

Chris Kenniburg - келді
Plugin developers қатысушының суреті

We have a solution and it will be in a new release.  If you want to fix your site now use this.  

Go to fordson/javascript/scrolltotop.js and replace the entire code with this:

$(document).ready(function() {
    if ($('#back-to-top').length) {
        var scrollTrigger = 200, // px
        backToTop = function () {
            var scrollTop = $(window).scrollTop();
            if (scrollTop > scrollTrigger) {
            $('#back-to-top').addClass('show');
            } else {
            $('#back-to-top').removeClass('show');
            }
        };
        backToTop();
        $(window).on('scroll', function () {
        backToTop();
        });
        $('#back-to-top').on('click', function (e) {
        e.preventDefault();
        $('html,body').animate({
            scrollTop: 0
        }, 700);
        });
    }
});
In reply to Chris Kenniburg

Re: Fordson gototop

Beat Schweitzer - келді

Thank you for the solution, Chris.
Now the button is working!