Jumat, 29 September 2023
Selasa, 26 September 2023
Generate Code Timer Google Form
Generate Code Timer Google Form
<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="right"><a class=""></a> <a class=""></a> <span id="time"></span></div>
<span id="form">
<iframe src=""></iframe><br />
</span>
</body>
<script>
function startTimer(duration, display) {
var timer = duration, minutes, seconds;
var batas = timer + 60* ;
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;
if (--timer < 0) {
document.getElementById("timer").innerHTML = "";
}
if (--batas < 0) {
document.getElementById("form").style.visibility = "hidden";
document.getElementById("timer").style.visibility = "hidden";
}
}, 1000);
}
window.onload = function () {
var fiveMinutes = 60 * ,
display = document.querySelector('#time');
startTimer(fiveMinutes, display);
};
</script>
<style type="text/css">
body {
overflow: visible;
}
iframe {
height: 600px;
width: 100%;
border: 0px;
padding-top: 8px;
margin: 0px
}
#timer {
background-color: ;
color: ;
font-family: arial;
font-weight: bold;
padding: 10px 30px;
border-radius: px;
}
</style>
Jumat, 15 September 2023
Kamis, 14 September 2023
Langganan:
Postingan (Atom)