2016-12-13, 11:42 PM
I've been searching all over the internet for a simple 'scroll to top smoothly' button. All of them came with jQuery to be assigned. I've even tried, this tutorial here.
EVERY single one of these has messed up inline moderation (meaning I can't select a post or thread).
Currently I have this simple code in my header include. It makes the "Return to Top" link (found in the footer) scroll back to the top smoothly, but yet again. Inline moderation stops working.
Any help for a solution would be greatly appreciated.
FORUM: http://edherest.sunwolves.com/index.php (choose "NEW EDHEREST" theme).
JQUERY:
SOOOO sorry, of course right after I post this message I find a solution.
For any having the same issues and are looking for a smooth scroll to top function that does not mess with inline moderation, here ya go!
https://gist.github.com/ricardozea/abb9f98a19f6d04a0269
EVERY single one of these has messed up inline moderation (meaning I can't select a post or thread).
Currently I have this simple code in my header include. It makes the "Return to Top" link (found in the footer) scroll back to the top smoothly, but yet again. Inline moderation stops working.
Any help for a solution would be greatly appreciated.
FORUM: http://edherest.sunwolves.com/index.php (choose "NEW EDHEREST" theme).
JQUERY:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function() {
jQuery('a[href=#top]').click(function(){
jQuery('body,html').animate({scrollTop: 0}, 800);
return false;
});
});
</script>
SOOOO sorry, of course right after I post this message I find a solution.
For any having the same issues and are looking for a smooth scroll to top function that does not mess with inline moderation, here ya go!
https://gist.github.com/ricardozea/abb9f98a19f6d04a0269