mirror of https://github.com/dirtbags/tanks.git
jstanks: replace alert! with debug!
This commit is contained in:
parent
0cad982dbd
commit
eebcd66f2e
|
@ -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">
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue