Commit ddb44a10 authored by Stefan Behnel's avatar Stefan Behnel

make code blocks open on first click instead of second

--HG--
extra : transplant_source : %C6%DAZ%C5%05%2A%ADhrA1%86X%84S%C2%17%23I-
parent cb1a22c9
...@@ -122,7 +122,7 @@ body { font-family: courier; font-size: 12; } ...@@ -122,7 +122,7 @@ body { font-family: courier; font-size: 12; }
<script> <script>
function toggleDiv(id) { function toggleDiv(id) {
theDiv = document.getElementById(id); theDiv = document.getElementById(id);
if (theDiv.style.display == 'none') theDiv.style.display = 'block'; if (theDiv.style.display != 'block') theDiv.style.display = 'block';
else theDiv.style.display = 'none'; else theDiv.style.display = 'none';
} }
</script> </script>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment