Add: notifier javascript on HTML

This commit is contained in:
2018-12-10 09:54:13 +09:00
parent 2e51b5c13a
commit 2eea30f574
+15
View File
@@ -77,5 +77,20 @@
<body> <body>
<div id="LicenseTimer" style="text-align:center;"></div> <div id="LicenseTimer" style="text-align:center;"></div>
<script type="text/javascript">
var timeOutEventID;
function ShowNotifyTimeOver(timeLeft) {
timeOutEventID = setTimeout(function() {
alert("!!! 60분 시험 시간 종료 !!!\n작업을 중단하고 선생님을 불러주세요.");
// notify("시험 시간이 끝났습니다!!!");
}, timeLeft);
}
function CancelNotifyTimeOver() {
clearTimeout(timeOutEventID);
}
</script>
</body> </body>
</html> </html>