mirror of
https://github.com/kennethreitz-archive/kJS.tmbundle.git
synced 2026-06-05 23:50:19 +00:00
added show code button on run javascript
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user