-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathindex.html
172 lines (156 loc) · 4.68 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>PubNub Real-Time WebGL Visualization</title>
<link data-rh="true" rel="icon" href="https://www.pubnub.com/favicon.ico">
<meta name="description" content="PubNub Real-Time WebGL Visualization" />
<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;
}
#pubnub {
position: absolute;
top: 20px !important;
left: 20px !important;
z-index: 200;
background: url(assets/logo.png);
background-size: contain;
background-repeat: no-repeat;
width: 200px;
height: 45px;
}
#title {
position: absolute;
top: 28px !important;
left: 230px !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='https://get.webgl.org'>https://get.webgl.org</a> for more information.";
}
</script>
<div id="globe">
<!--
<a href="https://www.pubnub.com/" target="pubnub"><div id="pubnub"></div></a>
<div id="title">Real-Time Traffic</div>
<div id="info">
Displaying less than 0.01% of real-time traffic
<br>
Images Courtesy of <a href="https://visibleearth.nasa.gov/view.php?id=55167" target="_blank">NASA</a>, <a href="https://planetpixelemporium.com/earth.html" target="_blank">JHT</a>, and <a href="https://alexcpeterson.com/spacescape" target="_blank">Spacescape</a>
<br>
Source on <a href="https://github.com/pubnub/webgl-visualization" target="_blank">GitHub</a>
</div>
-->
<!--
<div id="qrcode">
<p><h2>Play Me:</h2></p>
<p>https://pubnub.github.io/webgl-controller</p>
<p><img src="assets/qrcode.png" alt="https://pubnub.github.io/webgl-controller"></p>
<p>Active Players: <span id="active_players"><img src="assets/gear.png" alt="loading..." class="spin"></span></p>
</div>
-->
</div>
<!--
<div id="share-btn" class="share-btn"></div>
<div id="fullscreen"></div>
-->
<canvas id="canvas" width="1024" height="512" style="display: none;"></canvas>
<script src="https://cdn.pubnub.com/pubnub.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min.js"></script>
<script src="js/geo_parser.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/pubnubcontrols.js"></script>
<script src="js/data.js"></script>
<script src="js/url-config.js"></script>
<script src="https://code.jquery.com/jquery-2.1.0.min.js"></script>
<script src="js/share.min.js"></script>
<script>
$('.share-btn').share({
url: window.location.href,
flyout: 'top right'
});
</script>
</body>
</html>