Difference between revisions of "Template:Virginia"

Line 212: Line 212:
  
  
function toggleDiv(strArg) {
+
function toggleDiv() {
     var x = document.getElementsByClassName(strArg);
+
     var x = document.getElementById('toggleID');
var i;
+
    x.classList.toggle("toggleClass");
for (i = 0; i < x.length; i++) {
+
      if (x[i].style.display === 'none') {
+
          x[i].style.display = 'block';
+
      } else {
+
          x[i].style.display = 'none';
+
      }
+
}
+
 
}
 
}
  
Line 241: Line 234:
 
body {background-color:white;}  
 
body {background-color:white;}  
 
#bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px; }
 
#bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px; }
#toggle
+
#toggleID
  
  

Revision as of 15:24, 15 August 2017