Update index.html
This commit is contained in:
parent
8bac5cae0b
commit
1dc001a7d6
18
index.html
18
index.html
|
@ -3,6 +3,23 @@
|
|||
<title>DremJS</title>
|
||||
<head>
|
||||
<script src="jquery/jquery-3.3.1.min.js"></script>
|
||||
<script>
|
||||
function startTime() {
|
||||
var today = new Date();
|
||||
var h = today.getHours();
|
||||
var m = today.getMinutes();
|
||||
var s = today.getSeconds();
|
||||
m = checkTime(m);
|
||||
s = checkTime(s);
|
||||
document.getElementById('txt').innerHTML =
|
||||
h + ":" + m + ":" + s;
|
||||
var t = setTimeout(startTime, 500);
|
||||
}
|
||||
function checkTime(i) {
|
||||
if (i < 10) {i = "0" + i}; // add zero in front of numbers < 10
|
||||
return i;
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<style>
|
||||
.start {
|
||||
|
@ -27,6 +44,7 @@
|
|||
}
|
||||
</style>
|
||||
<body>
|
||||
<div id="txt"></div>
|
||||
<iframe src="index-closed.html" style="height:600px;width:1100px"></iframe>
|
||||
<INPUT TYPE="button" onClick="history.go(0)" VALUE="Home">
|
||||
</body>
|
||||
|
|
Loading…
Reference in a new issue