This repository has been archived on 2025-06-21. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
suitedesk/themes/zuitedesk/js/runapp.js

23 lines
460 B
JavaScript

'use strict';
$jq(document).ready(function ($) {
// Bind to scroll.
$(window).scroll(function () {
//Display or hide scroll to top button.
if ($(this).scrollTop() > 100) {
$('#scroll-top-link').fadeIn();
} else {
$('#scroll-top-link').fadeOut();
}
});
// Function for scrolling to top.
$('#scroll-top-link').click(function () {
$("html, body").animate({
scrollTop: 0
}, 600);
return false;
});
});