-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
146 lines (125 loc) · 3.24 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Real-Time WebGL Visualization</title>
<style>
html, body {
height: 100%;
}
body {
font-family: 'Helvetica Neue', Helvetica, sans-serif;
background: black;
margin: 0;
overflow: hidden;
}
canvas {
position: absolute;
top: 0;
left: 0;
}
#globe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
#fullscreen {
position: absolute;
bottom: 20px;
right: 20px;
background: url(assets/fullscreen.png);
width: 32px;
height: 32px;
cursor: pointer;
}
#kiwibank {
position: absolute;
top: 20px !important;
left: 20px !important;
z-index: 200;
background: url(assets/logo.jpg);
background-size: contain;
background-repeat: no-repeat;
width: 52px;
height: 52px;
}
#title {
position: absolute;
top: 28px !important;
left: 80px !important;
display: block;
color: white;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
font-size: 34px;
z-index: 202;
}
#info {
background: rgba(0, 0, 0, 0.5);
color: white;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
position: absolute;
bottom: 20px !important;
left: 50% !important;
margin-left: -144.5px;
display: block;
z-index: 201;
text-align: center;
}
#info a {
color: white;
}
.share-btn {
position: absolute;
bottom: 20px;
left: 60px;
z-index: 203;
}
#qrcode {
position: absolute;
top: 0;
right: 20px;
color: #fff;
text-align: right;
font-size: 2em;
z-index: 300;
}
@-webkit-keyframes spin {
0% {
-webkit-transform: rotate(0turn);
}
100% {
-webkit-transform: rotate(1turn);
}
}
.spin {
-webkit-animation-name: spin;
-webkit-animation-duration: 1.5s;
-webkit-animation-iteration-count: infinite;
}
</style>
</head>
<body>
<script>
if (!window.WebGLRenderingContext) {
document.body.innerHTML = "Sorry your browser does not support WebGL. Please visit <a href='http://get.webgl.org'>http://get.webgl.org</a> for more information.";
}
</script>
<div id="globe">
<a><div id="kiwibank"></div></a>
<div id="title">Real-Time Traffic</div>
</div>
<div id="fullscreen"></div>
<canvas id="canvas" width="1024" height="512" style="display: none;"></canvas>
<script src="js/lodash.min.js"></script>
<script src="js/stats.min.js"></script>
<script src="js/three.js"></script>
<script src="js/globe.js"></script>
<script src="js/visibility.js"></script>
<script src="js/mousecontrols.js"></script>
<script src="js/dataws.js"></script>
<script src="js/url-config.js"></script>
<script src="js/jquery-2.1.0.min.js"></script>
</body>
</html>