SSL Labs Score

Log in to participate

There is no cost to join RicheyWeb, and membership is a requirement to submit bug reports and participate in the support forums.

× Extension Discussions

"Back to top" doesn't work with ScriptsDown NEW REPLY

More
2 months 3 weeks ago #317 by tehribo
tehribo created the topic: "Back to top" doesn't work with ScriptsDown NEW REPLY
Hello,

I am using a template called Purity 3
www.joomlart.com/joomla/templates/purity-iii

After enabling Scriptsdown, the "Back to top" button stopped working.

This should be the code of the "Back-to-top" script
(function($) {
    // Back to top
    $('#back-to-top').on('click', function(){
        $("html, body").animate({scrollTop: 0}, 500);
        return false;
    });
    $(window).load(function(){
        // hide button to top if the document height not greater than window height*2;using window load for more accurate calculate.    
        if ((parseInt($(window).height())*2)>(parseInt($(document).height()))) {
            $('#back-to-top').hide();
        } 
    });
})(jQuery);

Thank you in advance!

Best regards

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to add attachements.
  • Not Allowed: to edit your message.
Kunena Forum