feat: add admin panel layout, dashboard, and user management
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
|
||||
"use strict";
|
||||
(() => {
|
||||
window.addEventListener('scroll', stickyFn);
|
||||
var navbar = document.getElementById("sidebar");
|
||||
var navbar1 = document.getElementById("header");
|
||||
var sticky = navbar.offsetTop;
|
||||
var sticky1 = navbar1.offsetTop;
|
||||
function stickyFn() {
|
||||
if (window.scrollY >= 75) {
|
||||
navbar.classList.add("sticky-pin")
|
||||
navbar1.classList.add("sticky-pin")
|
||||
} else {
|
||||
navbar.classList.remove("sticky-pin");
|
||||
navbar1.classList.remove("sticky-pin");
|
||||
}
|
||||
}
|
||||
window.addEventListener('scroll', stickyFn);
|
||||
window.addEventListener('DOMContentLoaded', stickyFn);
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user