chess/public/assets/js/pages/features/miscellaneous/sticky-panels.js

33 lines
730 B
JavaScript
Raw Normal View History

2024-08-29 03:56:32 +00:00
"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();
});