added code for reading and writing tree data

This commit is contained in:
nickwalton committed 2019-10-25 17:19:53 -06:00
1 parent 7e55a8ad21
commit c01eb5c91f
9 files changed
+169 -85

No files matched your search

+6 -4
View File
@@ -69,10 +69,10 @@ var Typer={
evt = evt || window.event
var charCode = evt.keyCode || evt.which
if(charCode == 8){
if(inputStr.length > 0){
console.log(inputStr)
inputStr = inputStr.substring(0, inputStr.length-1)
console.log(inputStr)
if(Typer.inputStr.length > 0){
console.log(Typer.inputStr)
Typer.inputStr = Typer.inputStr.substring(0, Typer.inputStr.length-1)
console.log(Typer.inputStr)
Typer.removeChar()
}
}
@@ -98,6 +98,8 @@ var Typer={
},
}
function onButtonClick(num){
document.getElementById('buttons').style.visibility='hidden';