5,960
edits
(Created page with "<html> <label class="switch"> <input type="checkbox"> <span class="slider round"></span> </label> </html>") |
No edit summary |
||
Line 1: | Line 1: | ||
<html> | <html> | ||
<script> | |||
function toggleReferences() { | |||
var x = document.getElementById("myDIV"); | |||
if (x.style.display === "none") { | |||
x.style.display = "block"; | |||
} else { | |||
x.style.display = "none"; | |||
} | |||
} | |||
</script> | |||
<label class="switch"> | <label class="switch"> | ||
<input type="checkbox"> | <input type="checkbox" onclick="toggleReferences()"> | ||
<span class="slider round"></span> | <span class="slider round"></span> | ||
</label> | </label> | ||
</html> | </html> | ||
<div id="myDIV" style="background: tomato; height: 30px;"></div> |