Difference between revisions of "Template:Newcastle/navbar2"

Line 127: Line 127:
  
 
function myFunction() {
 
function myFunction() {
     var x = document.getElementByClass("navbar");
+
     var x = document.getElementById("navbar");
 
     if (x.style.display === "none") {
 
     if (x.style.display === "none") {
 
         x.style.display = "block";
 
         x.style.display = "block";
Line 142: Line 142:
  
  
<div class="navbar" style="position: fixed; top: 16px; left:0px; width:100%; height:50px; z-index:100">
+
<div id="navbar" style="position: fixed; top: 16px; left:0px; width:100%; height:50px; z-index:100">
 
<ul class="navbar_ul" style="margin:0px">
 
<ul class="navbar_ul" style="margin:0px">
 
   <li class="navbar_li"><a class="site-logo" style="padding:7px" href="https://2018.igem.org/Team:Newcastle">
 
   <li class="navbar_li"><a class="site-logo" style="padding:7px" href="https://2018.igem.org/Team:Newcastle">

Revision as of 20:38, 16 October 2018