5,951
edits
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
<script> | <script> | ||
function toggleReferences() { | function toggleReferences() { | ||
var x = document.getElementById("myDIV"); | |||
var y = x.getElementsByClassName("reference"); | |||
var i; | |||
for (i = 0; i < y.length; i++) { | |||
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++) { | } | ||
} | |||
} | } | ||
</script> | </script> |