added show code button on run javascript

This commit is contained in:
Thomas Aylott
2009-02-25 11:18:39 -05:00
parent 81830b803b
commit 4481ff2b91
+4 -1
View File
@@ -36,8 +36,11 @@ cat <<HTML
}catch(e){ console.log(e.message); }; })();
</script>
<pre id="log">
<input type="button" value="Show Code" onclick="var c=document.getElementById('code');c.style.display==''?c.style.display='none':c.style.display='';" />
<pre id="code" style="display:none">
$YOURCODE
</pre>
<pre id="log">
<script>
try{throw {}}catch(e){ window.__line=(e.line||0) + 3 };
try{