Form Fitur Timer Ujian Online Unlimited Auto Hidden dari ngeweb.site
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<body>
<div id="timer" align="center"><a class="fa fa-book"></a> micro <a class="fa fa-clock-o"></a> <span id="time"></span></div>
<span id="form">
<iframe src="micro ">LOADING</iframe><br />
</span>
</body>
<script>
function startTimer(duration, display) {
var timer = duration, minutes, seconds;
var batas = timer + 60*micro ;
setInterval(function () {
minutes = parseInt(timer / 60, 10);
seconds = parseInt(timer % 60, 10);
minutes = minutes < 10 ? "0" + minutes : minutes;
seconds = seconds < 10 ? "0" + seconds : seconds;
display.textContent = minutes + ":" + seconds + " Menit !";
if (--timer < 0) {
document.getElementById("timer").innerHTML = "micro ";
}
if (--batas < 0) {
document.getElementById("form").style.visibility = "hidden";
document.getElementById("timer").style.visibility = "hidden";
}
}, 1000);
}
window.onload = function () {
var fiveMinutes = 60 * micro ,
display = document.querySelector('#time');
startTimer(fiveMinutes, display);
};
</script>
<style type="text/css">
body {
overflow: hidden;
}
iframe {
height: 100%;
width: 100%;
border: 0px;
padding-top: 8px;
margin: 0px
}
#timer {
background-color: micro ;
color: micro ;
font-family: arial;
font-weight: bold;
padding: 10px 30px;
border-radius: micro px;
}
</style>
Semoga membantu teman-teman semuanya untuk melaksanakan tes / ujian online