rrrr

var seconds = 300; function secondPassed() { var minutes = Math.round((seconds - 30) / 60), remainingSeconds = seconds % 60; if (remainingSeconds < 10) { remainingSeconds = "0" + remainingSeconds; } document.getElementById('countdown').innerHTML = minutes + ":" + remainingSeconds; if (seconds == 0) { clearInterval(countdownTimer); document.qForm.submit(); } else { seconds--; } } var countdownTimer = setInterval('secondPassed()', 1000); body { background-color: #eee; } canvas {} time {color: red; float: right;} .active {color: green; font-size: 12px; font-weight: bold;}

Question 1 of 2                                                                          0

219