summaryrefslogtreecommitdiff
path: root/public/js/header.js
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-01-04 11:31:13 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-01-04 11:31:13 +0800
commit7e20e4bc56e83767f0d8223c60c2af27c5c5ceca (patch)
treed3b4dc3603dc59be18e1abd11064ca74f527c6a1 /public/js/header.js
parent178cae53b2bbe8496f224608ede5f84e5bce1792 (diff)
updated comments removal
Diffstat (limited to 'public/js/header.js')
-rw-r--r--public/js/header.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/public/js/header.js b/public/js/header.js
index b6e00990..3bc06a3a 100644
--- a/public/js/header.js
+++ b/public/js/header.js
@@ -3,8 +3,6 @@
var header = document.querySelector('[header]');
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=\"/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