first commit

This commit is contained in:
dev-chiefworks
2022-05-31 16:21:53 -04:00
commit f76abffdcd
5978 changed files with 1078901 additions and 0 deletions
@@ -0,0 +1,57 @@
/* ------------------------------------------------------------------------------
*
* # Scrollspy
*
* Demo JS code for components_scrollspy.html page
*
* ---------------------------------------------------------------------------- */
// Setup module
// ------------------------------
var Scrollspy = function () {
//
// Setup module components
//
// Sticky
var _componentSticky = function() {
if (!$().stick_in_parent) {
console.warn('Warning - sticky.min.js is not loaded.');
return;
}
// Initialize
$('.sidebar-sticky .sidebar').stick_in_parent({
offset_top: 20,
parent: '.content'
});
// Detach on mobiles
$('.sidebar-mobile-component-toggle').on('click', function() {
$('.sidebar-sticky .sidebar').trigger("sticky_kit:detach");
});
};
//
// Return objects assigned to module
//
return {
initComponents: function() {
_componentSticky();
}
}
}();
// Initialize module
// ------------------------------
document.addEventListener('DOMContentLoaded', function() {
Scrollspy.initComponents();
});