durfdoen-2.0/layouts/partials/navbar.erb

21 lines
552 B
Text
Raw Normal View History

<nav>
<img src="/assets/OmdatHetDurfDoenLogoSuckt.png" alt="">
<ul>
<% for i in navigables %>
<li><%= link_to(i[:titel], i, class: "nav_link") %></li>
<% end %>
<script>
const nav_links = document.querySelectorAll(".nav_link");
nav_links.forEach(nav_link => {
if (nav_link.getAttribute("href") === window.location.pathname) {
nav_link.classList.add("active_link");
}
})
</script>
</ul>
<div>
2020-08-29 00:10:51 +02:00
<input type="search" placeholder="Zoek vereniging, convent …">
</div>
</nav>