Difference between revisions of "Template:Copenhagen-Header"

Line 695: Line 695:
 
function myFunction() {
 
function myFunction() {
 
     var x = document.getElementById("myDIV");
 
     var x = document.getElementById("myDIV");
     if (x.style.display == "none") {
+
     if (x.style.display === "block") {
        x.style.display = "block";
+
    } else {
+
 
         x.style.display = "none";
 
         x.style.display = "none";
 +
    } else {
 +
        x.style.display = "block";
 
     }
 
     }
 
}
 
}

Revision as of 16:08, 28 October 2017