diff --git a/code/chrono.js b/code/chrono.js index 1ae0842..b8f025b 100644 --- a/code/chrono.js +++ b/code/chrono.js @@ -23,13 +23,15 @@ function chrono(){ else if(msec < 100){ msec = "0" +msec } - document.getElementById("chronotime").innerHTML = hr + ":" + min + ":" + sec + ":" + msec + document.getElementById("chronotime").innerHTML = hr + ":" + min + ":" + sec timerID = setTimeout("chrono()", 10) } function chronoStart(){ + /* document.chronoForm.startstop.value = "stop!" document.chronoForm.startstop.onclick = chronoStop - document.chronoForm.reset.onclick = chronoReset + document.chronoForm.reset.onclick = chronoReset + */ start = new Date() chrono() } @@ -42,16 +44,18 @@ function chronoContinue(){ chrono() } function chronoReset(){ - document.getElementById("chronotime").innerHTML = "0:00:00:000" + document.getElementById("chronotime").innerHTML = "0:00:00" start = new Date() } function chronoStopReset(){ - document.getElementById("chronotime").innerHTML = "0:00:00:000" + document.getElementById("chronotime").innerHTML = "0:00:00" document.chronoForm.startstop.onclick = chronoStart } function chronoStop(){ + /* document.chronoForm.startstop.value = "start!" document.chronoForm.startstop.onclick = chronoContinue - document.chronoForm.reset.onclick = chronoStopReset + document.chronoForm.reset.onclick = chronoStopReset + */ clearTimeout(timerID) } \ No newline at end of file diff --git a/code/game.html b/code/game.html index 4384e0c..487d0b8 100644 --- a/code/game.html +++ b/code/game.html @@ -10,19 +10,15 @@