[skip-ci] refactoring

This commit is contained in:
Matteo Gheza 2020-12-29 00:55:42 +01:00
parent c963f3dea7
commit 21be367382
2 changed files with 5 additions and 9 deletions

View File

@ -188,16 +188,12 @@ function chat() {
window.addEventListener('securitypolicyviolation',console.error.bind(console));
/* Toggle between adding and removing the "responsive" class to topnav when the user clicks on the icon */
function menu() {
var x = document.getElementById("myTopnav");
//var z = document.getElementById("logout");
if (x.className === "topnav") {
x.className += " responsive";
//z.className = " logout_sx";
var topNavBar = document.getElementById("topNavBar");
if (topNavBar.className === "topnav") {
topNavBar.className += " responsive";
} else {
x.className = "topnav";
//z.className = " logout_dx";
topNavBar.className = "topnav";
}
}

View File

@ -53,7 +53,7 @@
<body>
{% block menu %}
<!-- Menu -->
<div class="topnav" id="myTopnav">
<div class="topnav" id="topNavBar">
<a href="{{ urlsoftware }}list.php" class="active">{{ 'Availability List'|t }}</a>
<a href="{{ urlsoftware }}services.php">{{ 'Services'|t }}</a>
<a href="{{ urlsoftware }}trainings.php">{{ 'Trainings'|t }}</a>