diff --git a/html/about.html b/html/about.html index a6df930..ee21773 100644 --- a/html/about.html +++ b/html/about.html @@ -11,7 +11,6 @@
-

About Immerse

What Immerse does

Tomorrows game developers

diff --git a/html/apply.html b/html/apply.html index 80b4dbf..2a76da4 100644 --- a/html/apply.html +++ b/html/apply.html @@ -12,7 +12,6 @@
-

Apply

Apply to immerse


diff --git a/html/contact.html b/html/contact.html index 5fd41dd..87c9036 100644 --- a/html/contact.html +++ b/html/contact.html @@ -10,7 +10,6 @@
-

Contact

diff --git a/html/events.html b/html/events.html index 7582dd4..52764bd 100644 --- a/html/events.html +++ b/html/events.html @@ -13,7 +13,6 @@ -

Events

diff --git a/html/news.html b/html/news.html index 7eaa359..b4172b8 100644 --- a/html/news.html +++ b/html/news.html @@ -12,7 +12,6 @@ -

News

diff --git a/html/showcase.html b/html/showcase.html index 116f269..1b6d13e 100644 --- a/html/showcase.html +++ b/html/showcase.html @@ -11,7 +11,6 @@
-

Showcase

Immerse's projects

Here are some of what members of Immerse have made. if you want to make something similar diff --git a/html/sponsors.html b/html/sponsors.html index 1b17c33..e10d20b 100644 --- a/html/sponsors.html +++ b/html/sponsors.html @@ -13,7 +13,6 @@

-

Sponsors

SIT Logo

Sponsored by:

diff --git a/scripts/navbar.js b/scripts/navbar.js index 6d814a7..d673660 100644 --- a/scripts/navbar.js +++ b/scripts/navbar.js @@ -9,9 +9,23 @@ const list = [ {text: "Contact", link: "contact.html", icon: "C"}, ]; +var thisPage = window.location.pathname.split("/").pop(); + for(let n=0; n < list.length; n++) { let linkMenu = document.createElement("a"); linkMenu.innerHTML = list[n].text; linkMenu.href = list[n].link; + + + + if(list[n].link === thisPage) { + linkMenu.id = "this"; + console.log(thisPage); + console.log(list[n].link); + } + else { + linkMenu.id = "notThis"; + } + articleMenu.appendChild(linkMenu); } \ No newline at end of file diff --git a/style/style.css b/style/style.css index 0f4d7ee..7fadd39 100644 --- a/style/style.css +++ b/style/style.css @@ -169,16 +169,22 @@ article:last-of-type { width: 300px; margin: auto; } -#topbar a { - color: #f2f2f2; +#topbar a{ padding: 14px 20px; text-decoration: none; font-size: 17px; top: 10px; } +#this { + color: var(--main-color-light); + } +#notThis { + color: white; +} #topbar a:hover{ color: var(--main-color-light); } + #links { display: flex; justify-content: center;