diff --git a/docs/kuji.js b/docs/kuji.js index ffc6935..16cefa5 100644 --- a/docs/kuji.js +++ b/docs/kuji.js @@ -6,23 +6,22 @@ atari.removeEventListener("click", stopCountDown, false); } else { - finish.innerHTML = count + "秒前"; + finish.innerHTML = "残り" + count + "秒"; tmID = setTimeout(CountDown, 1000); } } function startCountDown() { - tmID = setTimeout(CountDown, 1000);/*100ms=1秒*/ + tmID = setTimeout(CountDown, 1000); infobox.removeEventListener("click", startCountDown, false); atari.addEventListener("click", stopCountDown, false); } function stopCountDown() { if (count >= 0) { clearTimeout(tmID); - infobox.innerHTML = "爆発阻止成功です!"; } finish.innerHTML = "終了"; - atari.innerHTML = "爆弾みーっけ"; + atari.innerHTML = "HIT!"; atari.removeEventListener("click", stopCountDown, false); } infobox.addEventListener("click", startCountDown, false);