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> <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">

View File

@ -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();