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("myDIV");
   var x = document.getElementById("sup");
   if (x.style.display === "none") {
   if (x.style.display === "none") {
     x.style.display = "block";
     x.style.display = "inline";
   } else {
   } else {
     x.style.display = "none";
     x.style.display = "none";
Line 18: Line 18:


<div id="myDIV" style="background: tomato; height: 30px;"></div>
<div id="myDIV" style="background: tomato; height: 30px;"></div>
Example text<ref>aaa</ref> more example text<ref>aaa</ref>