-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsiv.html
135 lines (112 loc) · 3.26 KB
/
siv.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<head>
<meta charset="utf-8" />
<link href='https://fonts.googleapis.com/css?family=Open Sans' rel='stylesheet'>
<style>
img
{
display: inline-block;
}
.image-container {
text-align: center;
}
.super-lege {
width: 10.2%;
}
.super-pleier {
padding-left: 3%;
padding-right: 5%;
width: 11%;
}
.dips-logo {
width: 45%;
margin-right: 5%;
}
html, body
{
height: 100%;
}
html
{
display: table;
margin: auto;
}
body
{
display: table-cell;
vertical-align: middle;
}
.head
{
text-align: center;
font-weight: bold;
font-family: 'Open Sans';
color: #343434; font-size: 4vw;
}
.time
{
text-align: center;
font-weight: normal;
font-family: 'Open Sans';
color: #343434; font-size: 4vw;
}
a>h3:active {
color: darkblue;
}
a {
color: #343434;
}
a:active {
color: darkblue;
}
</style>
</head>
<body style="background-color:#F8F8F8;">
<div class="content">
<div class="image-container">
<a href="https://hsorhf.sharepoint.com/sites/intranett-siv/DIPS/Sider/DIPS-arena.aspx">
<img class="dips-logo" src="images/DIPS_ArenaLogo.png" alt="Arena logo" />
</a>
</div>
<h3 id="hhsiv" class="head">
Vi tar i bruk
<a style="display: inline-block" href="https://hsorhf.sharepoint.com/sites/intranett-siv/DIPS/Sider/DIPS-arena.aspx">
DIPS Arena
</a>
</h3>
<h3 id="thsiv" class="time" ></h3>
</div>
<script>
var func = function(n1, n2, time, onFinishedName, x)
{
var now = new Date().getTime();
var distance = time - 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 ";
if (distance < 0) {
if(x){
clearInterval(x);
}
document.getElementById(n2).innerHTML = ""
document.getElementById(n1).innerHTML = onFinishedName;
}else{
document.getElementById(n2).innerHTML = txt;
document.getElementById(n1).innerHTML = onFinishedName + " om";
}
};
var setup = function(letter, time){
var fallback = document.getElementById("h"+letter).innerHTML;
var x = setInterval(func, 1000, "h"+letter, "t"+letter, time, fallback, x);
func("h"+letter, "t"+letter, time, fallback, x);
}
var Hsiv= new Date("May 26, 2024 12:00:00").getTime();
setup("hsiv", Hsiv);
</script>
</body>
</html>