Difference between revisions of "Template:Newcastle/navbar2"

Line 119: Line 119:
 
     display: none;
 
     display: none;
 
     z-index: 101;
 
     z-index: 101;
     position: absolute;
+
     position: fixed;
    top: 0px;
+
 
     right: 0px;
 
     right: 0px;
 
}
 
}
Line 131: Line 130:
 
function myFunction() {
 
function myFunction() {
 
     var x = document.getElementById("navbar");
 
     var x = document.getElementById("navbar");
    var y = document.getElementById("expand_btn");
 
 
     if (x.style.display === "none") {
 
     if (x.style.display === "none") {
 
         x.style.display = "block";
 
         x.style.display = "block";
        y.style.display = "block";
 
 
     } else {
 
     } else {
 
         x.style.display = "none";
 
         x.style.display = "none";
        y.style.display = "block";
 
 
     }
 
     }
 
}
 
}
Line 231: Line 227:
 
       </div>
 
       </div>
 
   </li>
 
   </li>
 
  <li><button onclick="myFunction()">Toggle</button></li>
 
 
    
 
    
 
</ul>
 
</ul>

Revision as of 21:10, 16 October 2018