-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
62 lines (62 loc) · 1.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>LEEKSPIN</title>
<style>
html,body,video {
width: 100%;
line-height:1.5em;
height: calc( 100% - 1em );
margin:0;
background-color:black;
}
video {
transform: scale(1.5);
}
</style>
<script>
var time
var output
function Init(){
time = 1;
StartTimer()
}
function convertOutput(){
var hours = 0
var mins = 0
var secs = time
while(secs >= 60){
secs -= 60;
mins += 1;
}
if(secs < 10){
secs = "0" + secs;
}
while(mins >= 60){
mins -= 60;
hours += 1;
}
if(mins < 10){
mins = "0" + mins;
}
output = hours + ":" + mins + ":" + secs;
}
function StartTimer(){
time += 1;
convertOutput();
document.getElementById("time").innerHTML = output;
self.setTimeout("StartTimer()", 1000);
}
</script>
</head>
<body>
<video width="100%" height="100%" loop="loop" autoplay="autoplay" controls="false">
<source src="loituma.webm" type="video/webm">
</video>
<div style="text-align:center; color:white; font-size:14pt; font-weight:bold">
You've been spinning for <span id="time">00:00:00</span>.
</div>
<script>Init()</script>
</body>
</html>