Main theme for SuiteDesk
This commit is contained in:
parent
8cf3c56044
commit
42540d1310
185 changed files with 17597 additions and 0 deletions
23
themes/zuitedesk/js/runapp.js
Normal file
23
themes/zuitedesk/js/runapp.js
Normal file
|
@ -0,0 +1,23 @@
|
|||
'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;
|
||||
});
|
||||
|
||||
});
|
Reference in a new issue