diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2024-03-19 09:38:37 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2024-03-19 09:38:37 +0800 |
| commit | 962bf144bc458e3739444301ac6be523cb15bd54 (patch) | |
| tree | 77f4c308fbc620ce46322cd4e10e30a71dbfb508 /public/js | |
| parent | a893caba965cc14b60663b2b83f833f3c0ced53c (diff) | |
updates
Diffstat (limited to 'public/js')
| -rw-r--r-- | public/js/header.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/header.js b/public/js/header.js index 79fc0610..7859fbab 100644 --- a/public/js/header.js +++ b/public/js/header.js @@ -1 +1 @@ -"use strict";var header=document.querySelector("[header]"),mainHeader=document.createElement("div"),page=header.getAttribute("page");mainHeader.innerHTML="\n<!-- header -->\n<header id=\"navBarHeader\">\n\t<nav class=\"navBar\">\n\t\t<div class=\"hleft\">\n\t\t\t<a id=\"btnHome\" style=\"text-decoration: unset\" href=\"/\">Home<span></span></span></a>\n\t\t</div>\n\t\t<div class=\"hright\">\n\t\t\t<a href=\"/ghrepos\" id=\"btnGhRepo\" style=\"text-decoration: unset\">Github Repos</a>\n\t\t\t<a href=\"/about\" id=\"btnAbout\" style=\"text-decoration: unset\">About</a>\n\t\t</div>\n\t</nav> \n</header>\n",header.appendChild(mainHeader),document.getElementById("btn"+page).setAttribute("class","active");
\ No newline at end of file +"use strict";var header=document.querySelector("[header]"),mainHeader=document.createElement("div"),page=header.getAttribute("page");mainHeader.innerHTML="\n<!-- header -->\n<header id=\"navBarHeader\">\n\t<nav class=\"navBar\">\n\t\t<div class=\"hleft\">\n\t\t\t<a id=\"btnHome\" style=\"text-decoration: unset\" href=\"/\">Home<span></span></span></a>\n\t\t</div>\n\t\t<div class=\"hright\">\n\t\t\t<a href=\"/ghrepos\" id=\"btnGhRepo\" style=\"text-decoration: unset\">Github Repos</a>\n\t\t\t<a href=\"/about\" id=\"btnAbout\" style=\"text-decoration: unset\">About</a>\n\t\t</div>\n\t</nav> \n</header>\n",header.appendChild(mainHeader),document.getElementById("btn"+page).setAttribute("class","active"),window.onscroll=function(){var header=document.querySelector("header");header.classList.toggle("minimizedIsland",100<window.scrollY)};
\ No newline at end of file |
