Skip to content

Instantly share code, notes, and snippets.

@j13k
Last active August 29, 2015 14:13
Show Gist options
  • Save j13k/2facbc418a367de8292a to your computer and use it in GitHub Desktop.
Save j13k/2facbc418a367de8292a to your computer and use it in GitHub Desktop.
Simple HTML debug panel with toggle control
<!-- Simple HTML debug panel with toggle control -->
[ <a id="debugControl" onclick="document.getElementById('debugPanel').style.display = (document.getElementById('debugPanel').style.display == 'none' ? 'block' : 'none'); document.getElementById('debugControl').innerHTML = (document.getElementById('debugControl').innerHTML == '+' ? '-' : '+');">+</a> ]
<pre id="debugPanel" style="font-family: 'Courier New', Monospace; display: none">
<!-- Debug output goes here -->
</pre>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment