-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
183 lines (115 loc) · 3.77 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
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<!DOCTYPE html>
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex, nofollow">
<meta name="googlebot" content="noindex, nofollow">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript" src="a_data/jquery-git.js"></script>
<script type="text/javascript" src="a_data/moment.js"></script>
<style type="text/css">
.container {
position: relative;
}
.center {
position: absolute;
left: 0;
top: 10%;
width: 100%;
text-align: center;
font-size: 4vw;
font-family: "Trebuchet MS", Helvetica, monospace;
opacity: 0.8;
}
.bottomcenter {
position: absolute;
left: 0;
top: 89%;
width: 100%;
text-align: center;
font-size: 12.5vw;
color: white;
font-family: "Trebuchet MS", Helvetica, "Lucida Grande", monospace;
}
img {
width: 100%;
height: auto;
}
body {
background-image: url("bakgrund.png");
background-repeat: repeat;
-webkit-background-size: contain;
-moz-background-size: contain;
-o-background-size: contain;
background-size: contain;
animation:clouds_anim 350s linear infinite;
}
@keyframes clouds_anim{
0%{background-position: 0 0; }
100%{background-position: -30000px -30000px;}
}
</style>
<title>SL BILJETT VUX</title>
<script>
// Find the right method, call on correct element
function launchIntoFullscreen(element) {
if(element.requestFullscreen) {
element.requestFullscreen();
} else if(element.mozRequestFullScreen) {
element.mozRequestFullScreen();
} else if(element.webkitRequestFullscreen) {
element.webkitRequestFullscreen();
} else if(element.msRequestFullscreen) {
element.msRequestFullscreen();
}
}
// Launch fullscreen for browsers that support it!
</script>
<script type="text/javascript">
$(window).on('load', function() {
function startTimer(duration, display) {
var timer = duration, minutes, seconds;
setInterval(function () {
minutes = parseInt(timer / 60, 10);
seconds = parseInt(timer % 60, 10);
minutes = minutes < 10 ? "0" + minutes : minutes;
seconds = seconds < 10 ? "0" + seconds : seconds;
display.text(minutes + ":" + seconds);
if (--timer < 0) {
timer = duration;
}
}, 1000);
}
jQuery(function ($) {
var fiveMinutes = 60 * 75,
display = $('#time');
startTimer(fiveMinutes, display);
});
document.getElementById("para1").innerHTML = formatAMPM();
function formatAMPM() {
var d = new Date(),
minutes = d.getMinutes().toString().length == 1 ? '0'+d.getMinutes() : d.getMinutes(),
hours = d.getHours().toString().length == 1 ? '0'+d.getHours() : d.getHours(),
ampm = d.getHours() >= 12 ? 'pm' : 'am',
months = ['Januari','Februari','Mars','April','Maj','Juni','Juli','Augusti','September','Oktober','November','December'],
days = ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'];
return d.getDate()+' '+months[d.getMonth()]+' '+d.getFullYear();
}
});
</script>
</head>
<body>
<div class="container">
<img onclick="launchIntoFullscreen(document.documentElement)" src="a_data/905daGt.png" alt="Ticket" width="1000" height="300">
<div onclick="launchIntoFullscreen(document.documentElement)" class="center"><div id="para1">17 April 2018</div></div>
<div onclick="launchIntoFullscreen(document.documentElement)" class="bottomcenter"> <div><span id="time">74:53</span></div> </div>
</div>
<script>
// tell the embed parent frame the height of the content
if (window.parent && window.parent.parent){
window.parent.parent.postMessage(["resultsFrame", {
height: document.body.getBoundingClientRect().height,
slug: "4Lwxf3xq"
}], "*")
}
</script>
</body></html>