mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-30 08:28:32 +02:00
init
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user