0
comment
comment
on 1/2/2010 3:23 PM
I’m using an iphone, but the calculator is somewhat limited. I want something a bit more like the calculator that I used in school. Perhaps one approach is to use a simple page:
<script type=”text/javascript”>
var m = Math;
var doeval = function(){
var cmd = document.getElementById(“commands”).value;
document.getElementById(“history”).value+=”“+cmd+” : “+ eval(cmd) +”\n”;
};
</script>
<h2>Eval</h2>
<p><label for=”history”>History:</label></p>
<p><textarea id=”history”></textarea></p>
<p><textarea value=”” [...]