diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2024-03-09 13:40:19 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2024-03-09 13:40:19 +0800 |
| commit | 09064ff4ddceb4964b662531e1e9e7aed075b749 (patch) | |
| tree | 251f2421c3010c9c1c0972dd64324da25f2edc22 /public/js/header.js | |
| parent | a5a8d741fd3ec0ec566a0a3f9391b877d7de4032 (diff) | |
updates
Diffstat (limited to 'public/js/header.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 b4d81fe6..7e7bbfe8 100644 --- a/public/js/header.js +++ b/public/js/header.js @@ -3,6 +3,6 @@ var header = document.querySelector('[header]'); var mainHeader = document.createElement('div'); var 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 <a href=\"/contact\" id=\"btnContact\" style=\"text-decoration: unset\">Contact</a>\n\t\t</div>\n\t</nav> \n</header>\n"; +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 |
