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>
|
<p>
|
||||||
<input type="button" onclick="resetTanks();" value="Run"> (Remember to submit (below) when you're done!)
|
<input type="button" onclick="resetTanks();" value="Run"> (Remember to submit (below) when you're done!)
|
||||||
</p>
|
</p>
|
||||||
<p id="debug"></p>
|
<p id="debug">[<tt>debug!</tt> puts things here, remember to remove it before submitting]</p>
|
||||||
<form id="form">
|
<form id="form">
|
||||||
<div id="stuff">
|
<div id="stuff">
|
||||||
<div id="code">
|
<div id="code">
|
||||||
|
|
|
@ -74,7 +74,7 @@ var Forf = function() {
|
||||||
this.cmdstack = [];
|
this.cmdstack = [];
|
||||||
this.builtins = new Object();
|
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) {
|
var unfunc = function(func) {
|
||||||
return function(myforf) {
|
return function(myforf) {
|
||||||
var a = myforf.datastack.pop();
|
var a = myforf.datastack.pop();
|
||||||
|
|
Loading…
Reference in New Issue