This commit is contained in:
trean
2021-03-20 15:53:01 +01:00
commit c9e1599d45
195 changed files with 75298 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
(function($) {
"use strict";
//Add OnepageNav / Sidebar
function sideNav() {
if($('.menu-box .sticky-menu').length){
$('.menu-box .sticky-menu ul').onePageNav();
}
}
//Add Scroll Bar To Sidebar
if($('#sidebar .menu-box').length){
$("#sidebar .menu-box").mCustomScrollbar({
axis:"y",
autoExpandScrollbar:false
});
}
//animate to top on Page Refresh
$('html, body').animate({
scrollTop: $('html, body').offset().top
}, 1000);
/* ==========================================================================
When document is ready, do
========================================================================== */
$(document).on('ready', function() {
sideNav();
});
})(window.jQuery);