Code du site https://militant.es/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

33 lines
1.2 KiB

<nav>
<script>
function setDisplay(classname, display) {
var elements = document.getElementsByClassName(classname);
for(i=0;i<elements.length;i++) {
elements[i].style.display = display;
}
};
function submenu() {
setDisplay("mainmenu", "none");
setDisplay("submenu", "inline");
};
function mainmenu() {
setDisplay("mainmenu", "inline");
setDisplay("submenu", "none");
};
</script>
<a class="mainmenu" href="/"><img src="/icon/icon_red.svg" style="height:0.8em;"/>Accueil</a>
<a class="mainmenu" href="{{ get_url(path="@/xmpp.md") }}">Messagerie</a>
<a class="mainmenu" href="https://agenda.militant.es/"><img src="/icon/external_link_red.png" style="height:0.7em;"/> Agenda</a>
<a class="mainmenu" href="#" onclick="submenu()"></a>
<a class="submenu" href="{{ get_url(path="@/reseau.md") }}">Réseau</a>
<a class="submenu" href="{{ get_url(path="@/documents/_index.md") }}">Documents</a>
<a class="submenu" href="{{ get_url(path="@/actus/_index.md") }}">Blog</a>
<a class="submenu" href="#" onclick="mainmenu()"></a>
<style>
.submenu {
display: none;
}
</style>
</nav>