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("content");
   var y = x.getElementsByClassName("reference");
   var y = x.getElementsByClassName("reference");
   var i;
   var i;
Line 21: Line 21:
</html>
</html>


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