Initial commmit
This commit is contained in:
commit
88383f90e5
1174 changed files with 227188 additions and 0 deletions
19
static/js/app.js
Normal file
19
static/js/app.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
let mn = {
|
||||
"getToken": function () {
|
||||
let cookies = document.cookie.replace(";", "").split(" ");
|
||||
|
||||
try {
|
||||
return cookies[0].split("=")[1].trim();
|
||||
} catch (_) {
|
||||
return ""
|
||||
}
|
||||
},
|
||||
"setNav": function (link) {
|
||||
let links = document.getElementsByClassName("header-link");
|
||||
[...links].forEach(link_el => {
|
||||
if (link_el.id === link) {
|
||||
document.getElementById(link).classList.add("selected-link")
|
||||
}
|
||||
});
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue