jstanks: replace alert! with debug!

This commit is contained in:
Alyssa Milburn 2014-07-29 17:13:21 +02:00
parent 0cad982dbd
commit eebcd66f2e
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@
<p>
<input type="button" onclick="resetTanks();" value="Run"> (Remember to submit (below) when you're done!)
</p>
<p id="debug"></p>
<p id="debug">[<tt>debug!</tt> puts things here, remember to remove it before submitting]</p>
<form id="form">
<div id="stuff">
<div id="code">

View File

@ -74,7 +74,7 @@ var Forf = function() {
this.cmdstack = [];
this.builtins = new Object();
this.builtins["alert!"] = function(myforf) { alert(myforf.datastack.pop()); };
this.builtins["debug!"] = function(myforf) { document.getElementById('debug').innerHTML = myforf.datastack.pop(); };
var unfunc = function(func) {
return function(myforf) {
var a = myforf.datastack.pop();