mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add luci-theme-alpha
This commit is contained in:
parent
9348ce096b
commit
9fcf5fd5b6
62 changed files with 5241 additions and 0 deletions
35
luci-theme-alpha/luasrc/app.js
Normal file
35
luci-theme-alpha/luasrc/app.js
Normal file
|
@ -0,0 +1,35 @@
|
|||
(function () {
|
||||
// your page initialization code here
|
||||
// the DOM will be available here
|
||||
|
||||
const toggler = document.querySelector(".toggler");
|
||||
console.log(toggler);
|
||||
toggler.addEventListener(
|
||||
"click",
|
||||
function (e) {
|
||||
const element = document.querySelector(".navbar");
|
||||
element.classList.toggle("active");
|
||||
},
|
||||
false
|
||||
);
|
||||
|
||||
// const isDark = localStorage.getItem("isDark");
|
||||
// if (isDark == 1) {
|
||||
// const element = document.querySelector("body");
|
||||
// element.classList.add("dark");
|
||||
// }
|
||||
// const themetoggler = document.querySelector(".themetoggler");
|
||||
// themetoggler.addEventListener(
|
||||
// "click",
|
||||
// function (e) {
|
||||
// e.preventDefault();
|
||||
// const element = document.querySelector("body");
|
||||
// element.classList.toggle("dark");
|
||||
|
||||
// const isDark = localStorage.getItem("isDark");
|
||||
// localStorage.setItem("isDark", isDark == 1 ? 0 : 1);
|
||||
// },
|
||||
// false
|
||||
// );
|
||||
})();
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue