-
Notifications
You must be signed in to change notification settings - Fork 0
/
longyearbyen.html
69 lines (60 loc) · 2.44 KB
/
longyearbyen.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
63
64
65
66
67
68
69
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<style>
img{
display: block;
margin-left: auto;
margin-right: auto;
margin-top: auto;
margin-bottom: auto;
height: auto;
max-width: 35%;
padding-right: 10%;
}
html, body {
height: 100%;
}
html {
display: table;
margin: auto;
}
body {
display: table-cell;
vertical-align: middle;
}
</style>
</head>
<body style="background-color:whitesmoke;">
<div class="content">
<img src="images/DIPS_ArenaLogo.png" />
<h3 id="header" style="text-align: center; font-family: Arial, Helvetica, sans-serif; color: #343434; font-size: 3vw; font-weight: normal">DIPS Arena er i produksjon på Longyearbyen sykehus om</h1>
<h3 id="demo" style="text-align: center; font-family: Arial, Helvetica, sans-serif; font-size: 3vw; font-weight:bold;">- dager - timer - minutter - sekunder</h2>
</div>
<script>
var countDownDate = new Date("Nov 8, 2020 13:00:00").getTime();
var func = function() {
var now = new Date().getTime();
var distance = countDownDate - now;
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
var txt = "";
if(days > 0) txt += days + " dager ";
if(hours > 0) txt += hours + " timer ";
if(minutes > 0) txt += minutes + " minutter "
txt += seconds + " sekunder ";
document.getElementById("demo").innerHTML = txt;
if (distance < 0) {
clearInterval(x);
document.getElementById("header").innerHTML = ""
document.getElementById("demo").innerHTML = "DIPS Arena er i produksjon på Longyearbyen sykehus";
}
};
var x = setInterval(func, 1000);
func();
</script>
</body>
</html>