Commit d11ab202 authored by Stefan Behnel's avatar Stefan Behnel

make code blocks open on first click instead of second

parent 128f1d77
......@@ -122,7 +122,7 @@ body { font-family: courier; font-size: 12; }
<script>
function toggleDiv(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';
}
</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