File "layout_fixed_sidebar_custom.js"
Full Path: /home/sasslijg/public_html/admin/global_assets/js/demo_pages/layout_fixed_sidebar_custom.js
File size: 1.15 KB
MIME-type: text/plain
Charset: utf-8
/* ------------------------------------------------------------------------------
*
* # Layout - fixed navbar and sidebar with custom scrollbar
*
* Demo JS code for layout_fixed_sidebar_custom.html page
*
* ---------------------------------------------------------------------------- */
// Setup module
// ------------------------------
var FixedSidebarCustomScroll = function() {
//
// Setup module components
//
// Perfect scrollbar
var _componentPerfectScrollbar = function() {
if (typeof PerfectScrollbar == 'undefined') {
console.warn('Warning - perfect_scrollbar.min.js is not loaded.');
return;
}
// Initialize
var ps = new PerfectScrollbar('.sidebar-fixed .sidebar-content', {
wheelSpeed: 2,
wheelPropagation: true
});
};
//
// Return objects assigned to module
//
return {
init: function() {
_componentPerfectScrollbar();
}
}
}();
// Initialize module
// ------------------------------
document.addEventListener('DOMContentLoaded', function() {
FixedSidebarCustomScroll.init();
});