chess/public/assets/js/pages/features/miscellaneous/sticky-panels.js
Ramadhon Ikhsan Prasetya 603e31b0f4 init
2024-08-29 10:56:32 +07:00

33 lines
730 B
JavaScript
Vendored

"use strict";
// Class definition
// Based on: https://github.com/rgalus/sticky-js
var KTStickyPanelsDemo = function () {
// Private functions
// Basic demo
var demo1 = function () {
if (KTLayoutAsideToggle && KTLayoutAsideToggle.onToggle) {
var sticky = new Sticky('.sticky');
KTLayoutAsideToggle.onToggle(function() {
setTimeout(function() {
sticky.update(); // update sticky positions on aside toggle
}, 500);
});
}
}
return {
// public functions
init: function() {
demo1();
}
};
}();
jQuery(document).ready(function() {
KTStickyPanelsDemo.init();
});