diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2023-10-31 16:00:44 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2023-10-31 16:00:44 +0800 |
| commit | b539ca0a40c63c64afe3c3afad5272137e231e11 (patch) | |
| tree | c3d824a5b7b56b5c2161419d63850ca94e9bceed /dest/js/header.js | |
| parent | 37b31c4ff2339345b4563ae216a920f17f4532d9 (diff) | |
update
Diffstat (limited to 'dest/js/header.js')
| -rw-r--r-- | dest/js/header.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dest/js/header.js b/dest/js/header.js index 141e1366..b6e00990 100644 --- a/dest/js/header.js +++ b/dest/js/header.js @@ -5,6 +5,6 @@ var newElement = document.createElement('div'); var page = header.getAttribute('page'); // console.log(page); -newElement.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=\"/pages/repo/github/repos.html\" id=\"btnGhRepo\" style=\"text-decoration: unset\">Github Repos</a>\n\t\t\t<a href=\"/pages/info/about.html\" id=\"btnAbout\" style=\"text-decoration: unset\">About</a>\n\t\t</div>\n\t</nav> \n</header>\n"; +newElement.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(newElement); document.getElementById("btn" + page).setAttribute('class', 'active');
\ No newline at end of file |
