Fix
This commit is contained in:
parent
c6b32af484
commit
ea019a5c4e
3 changed files with 8 additions and 4 deletions
2
Rules
2
Rules
|
@ -55,7 +55,7 @@ compile '/quiz.md' do
|
||||||
layout '/quiz.*'
|
layout '/quiz.*'
|
||||||
layout '/default.*'
|
layout '/default.*'
|
||||||
layout '/base.*'
|
layout '/base.*'
|
||||||
write ext: 'html'
|
write '/quiz/index.html'
|
||||||
end
|
end
|
||||||
|
|
||||||
compile '/search.html.erb' do
|
compile '/search.html.erb' do
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<div>
|
<div>
|
||||||
<p>Durf Doen wil je helpen de vereniging te vinden waar jij je thuis zal voelen.</p>
|
<p>Durf Doen wil je helpen de vereniging te vinden waar jij je thuis zal voelen.</p>
|
||||||
<div class="quizSpotlight">
|
<div class="quizSpotlight">
|
||||||
<a href="quiz.html">Doe de test</a>
|
<a href="/quiz/">Doe de test</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
<div class="randomVerenigingWrapper">
|
<div class="randomVerenigingWrapper">
|
||||||
<a href="https://zeus.ugent.be">
|
<a href="https://zeus.ugent.be">
|
||||||
<section class="randomVereniging">
|
<section class="randomVereniging">
|
||||||
<div class="randomVereniging_imageWrapper"><img loading=lazy src="https://zinc.zeus.gent" alt="logo van zeus %>" height="100"></div>
|
<div class="randomVereniging_imageWrapper"><img loading=lazy src="https://zinc.zeus.gent" alt="logo van Zeus WPI" height="100"></div>
|
||||||
<hr class="randomVereniging_hr">
|
<hr class="randomVereniging_hr">
|
||||||
<h3>Zeus WPI</h3>
|
<h3>Zeus WPI</h3>
|
||||||
<p>Speciaal voor mensen zonder JavaScript</p>
|
<p>Speciaal voor mensen zonder JavaScript</p>
|
||||||
|
|
|
@ -29,7 +29,11 @@
|
||||||
<script>
|
<script>
|
||||||
const nav_links = document.querySelectorAll(".nav-link");
|
const nav_links = document.querySelectorAll(".nav-link");
|
||||||
nav_links.forEach(nav_link => {
|
nav_links.forEach(nav_link => {
|
||||||
if (nav_link.getAttribute("href") === window.location.pathname) {
|
if (nav_link.getAttribute("href") === "/") {
|
||||||
|
if (window.location.pathname === "/") {
|
||||||
|
nav_link.classList.add("active_link");
|
||||||
|
}
|
||||||
|
} else if (window.location.pathname.startsWith(nav_link.getAttribute("href"))) {
|
||||||
nav_link.classList.add("active_link");
|
nav_link.classList.add("active_link");
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue