-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
224 lines (207 loc) · 7.39 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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/main.css">
<title>Globe Tweeter</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<script>
var Viewer;
</script>
<script type="text/javascript" src="js/jquery-1.4.2.js"></script>
<script type="text/javascript" src="js/jquery.mousewheel.js"></script>
<script type="text/javascript" src="js/code.js"></script>
<script type="text/javascript" src="js/flag.js"></script>
<script type="text/javascript" src="js/webgl-utils.js"></script>
<script type="text/javascript" src="js/osg.js"></script>
<script type="text/javascript" src="js/osgGA.js"></script>
<script type="text/javascript" src="js/osgUtil.js"></script>
<script type="text/javascript" src="js/osgAnimation.js"></script>
<script type="text/javascript" src="js/osgViewer.js"></script>
<script type="text/javascript" src="js/demo2.js"></script>
<script type="text/javascript" src="js/manipulator.js"></script>
<script type="text/javascript" src="js/twitter.js"></script>
<script type="text/javascript" src="js/world.js"></script>
<script type="text/javascript" src="js/country.js"></script>
<script type="text/javascript" src="js/coast.js"></script>
<script type="text/javascript" src="js/height.js"></script>
<script type="text/javascript" src="js/text.js"></script>
<script type="text/javascript" src="js/wave.js"></script>
<script type="text/javascript" src="js/coordinate.js"></script>
<!-- change here to get the /socket.io/socket.io.js from your server -->
<!-- <script type="text/javascript" src="http://184.106.112.6:22048/socket.io/socket.io.js"></script> -->
<!-- <script type="text/javascript" src="/socket.io/socket.io.js"></script> -->
<script type="text/javascript" src="js/app.js"></script>
<script type="text/javascript" src="js/instructions.js"></script>
<script type="text/javascript">
var twttr = {widgets: {ignoreSSL: true}};
</script>
<style>
#gobackbutton {top: -14px!important;}
</style>
<script type="text/javascript">
function getWindowSize() {
var myWidth = 0, myHeight = 0;
if( typeof( window.innerWidth ) == 'number' ) {
//Non-IE
myWidth = window.innerWidth;
myHeight = window.innerHeight;
} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth;
myHeight = document.documentElement.clientHeight;
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
//IE 4 compatible
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
}
return { 'w': myWidth, 'h': myHeight };
}
var AutoStart = (window.top == window); // if it's an not in an iframe, autostart.
var DisableWave = false;
</script>
<script type="text/javascript" src="js/state.js"></script>
</head>
<body>
<header id="masthead">
<div id="logo">
<!--<img src="img/globetweeter.png" alt="">-->
<h1 class="acknowledgement"><span>Globe</span><span>Tweeter</span></h1>
</div>
<div id="sharing">
<div id="facebook">
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like layout="button_count" show_faces="false" width="100"></fb:like>
</div>
<div id="twitter">
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
</div>
</div>
<span id="pitch" class="cartoBook">
Watch Twitter's activity around the world in real-time
</span>
</header>
<div id="demo-instructions" class="hidden">
<div class="bubble">
<span>Welcome to GlobeTweeter!</span>
<p>Take the planet for a spin and discover what people are tweeting by clicking on their picture.</p>
<div id="shareLocation" class="cartoBold">
Find my location
</div>
<span id="location-instructions"></span>
<span class="dismiss blue"><img src="img/dismiss.png" alt="dismiss">hide this message</span>
</div>
</div>
<ul id="countries" class="cartoBook">
<li>
<div class="flag"></div>
<span class="countryName"></span>
<span class="tweetCount cartoBold"></span>
</li>
<li>
<div class="flag"></div>
<span class="countryName"></span>
<span class="tweetCount"></span>
</li>
<li>
<div class="flag"></div>
<span class="countryName"></span>
<span class="tweetCount"></span>
</li>
<li>
<div class="flag"></div>
<span class="countryName"></span>
<span class="tweetCount"></span>
</li>
<li>
<div class="flag"></div>
<span class="countryName"></span>
<span class="tweetCount"></span>
</li>
<li>
<div class="flag"></div>
<span class="countryName"></span>
<span class="tweetCount"></span>
</li>
<li>
<div class="flag"></div>
<span class="countryName"></span>
<span class="tweetCount"></span>
</li>
<li>
<div class="flag"></div>
<span class="countryName"></span>
<span class="tweetCount"></span>
</li>
</ul>
<ul id="stats">
<li>
<span id="generalTweetCount" class="cartoBold">0</span>
TWEETS SENT
</li>
<li>
<span id="generalCountriesCount" class="cartoBold">0</span>
ACTIVE COUNTRIES
</li>
<li>
<span id="generalTimer" class="cartoBold">0</span>
ELAPSED TIME
</li>
<li>
<span id="tweetsPersecond" class="cartoBold">0</span>
TWEETS/SEC
</li>
</ul>
<div id="instructions">
<div id="ranking-instructions" class="hidden">
<div class="corner">
</div>
<div class="bubble">
Click on a country to center it on your screen
<span class="dismiss blue"><img src="img/dismiss.png" alt="dismiss">hide this message</span>
</div>
</div>
</div>
<div id="connection">
<div class="bubble">
Connecting to twitter stream
</div>
</div>
<section id="credits" class="bubble">
<header><span id="arrow"></span>Credits</header>
<hr />
<ul id="authors">
<li>
<span>Code by</span>
<span>Cedric Pinson</span>
<span><a href="http://plopbyte.net" target="_blank" title="Visit Cedric's website">website</a> / <a href="http://twitter.com/trigrou" target="_blank" title="Follow Cedric on Twitter">twitter</a> / <a href="http://osgjs.org" target="_blank" title="osgjs framework 3D used for the demo">osgjs</a></span>
</li>
<li>
<span>Design by</span>
<span>Guillaume Lecollinet</span>
<span><a href="http://www.littleworkshop.fr" target="_blank" title="Visit Guillaume's website">website</a> / <a href="http://twitter.com/glecollinet" target="_blank" title="Follow Guillaume on Twitter">twitter</a></span>
</li>
<li>
<span>Node.js hacking</span>
<span>Johan Euprhosine</span>
<span><a href="http://aminche.com" target="_blank" title="Visit Johan's website">website</a> / <a href="http://twitter.com/proppy" target="_blank" title="Follow Johan on Twitter">twitter</a></span>
</li>
</ul>
</section>
<div id="ViewContainer">
<canvas id="3DView"></canvas>
</div>
<div id="TweetsProcessedStats"></div>
<div id="TweetsPerSeconds"></div>
<div id="TweetContent" class="hidden">
</div>
<!--
<div id="hudHead" class="hud" >test</div>
<div id="hudSearch" class="hud" ></div>
<div id="hudContent" class="hud" >test</div>
-->
<canvas id="TweetPicture" width="64" height="64"> </canvas>
<canvas id="TextRendering" width="512" height="32"> </canvas>
<canvas id="HeightMap" width="128" height="64"> </canvas>
<canvas id="HeightMap2" width="128" height="64"> </canvas>
<script src="../../shared/mozilla-badge.js" defer></script>
</body>
</html>