(() => {
function CountDown() {
var count = 4, tmID, info = document.getElementById("timeout");
function countDown() {
if (--count == 0) {
start.innerHTML = "ぼかーん";
} else {
start.innerHTML = count + "秒前";
tmID = setTimeout(countDown, 1000);
}
}
function startCountDown() {
tmID = setTimeout(countDown, 1000);
start.removeEventListener("click", startCountDown, false);
start.addEventListener("click", stopCountDown, false);
}
function stopCountDown() {
clearTimeout(tmID);
start.innerHTML = "停めました。";
start.removeEventListener("click", stopCountDown, false);
}
start.addEventListener("click", startCountDown, false);
}
document.addEventListener("DOMContentLoaded", CountDown, false);
})();
(() => {
function goodchoice() {
var good = document.getElementsByTagName("p");
document.addEventListerner("DOMContentLoaded",(e) => {
document.
}
}
})();