Template:Notes toggle: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 2: Line 2:
<script>
<script>
function toggleReferences() {
function toggleReferences() {
/*  var x = document.getElementById("sup");
   var x = document.getElementById("myDIV");
   if (x.style.display === "none") {
  var y = x.getElementsByClassName("reference");
    x.style.display = "inline";
  var i;
  } else {
  for (i = 0; i < y.length; i++) {
    x.style.display = "none";
    if (y[i].style.display === "none") {
  }*/
      y[i].style.display = "inline";
var x = document.getElementById("myDIV");
    } else {
var y = x.getElementsByClassName("reference");
      y[i].style.display = "none";
var i;
    }
for (i = 0; i < y.length; i++) {
  }
  y[i].style.backgroundColor = "red";
}
}
}
</script>
</script>