-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
308 lines (283 loc) · 14.6 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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
<!DOCTYPE html>
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Halo Status</title>
<link href="css/global.css" rel="stylesheet" type="text/css" />
<link href='http://fonts.googleapis.com/css?family=Convergence' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Cantarell' rel='stylesheet' type='text/css'>
<link id="favicon" rel="shortcut icon" type="image/x-icon" href="images/game_icons/favicons/0.ico" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<!--<script src="js/soundmanager2/script/soundmanager2-nodebug-jsmin.js"></script>
<script src="js/jquery.jgrowl_minimized.js"></script>
<script src="js/jquery.quicksand.js"></script>
<script src="js/jquery.sparkline.min.js"></script>
<script src="js/query.js"></script>
<script src="js/md5.min.js"></script>-->
<script src="js/everything-min.js"></script>
<script>
var sound = true;
soundManager.url = 'js/soundmanager2/swf/';
soundManager.flashVersion = 8;
soundManager.useFlashBlock = false;
$(function () {
var tabContainers = $('div#tabs > div');
$('div#tabs ul a').click(function () {
$('#tabs ul li').removeClass('active');
$(this).parent().addClass('active');
tabContainers.hide().filter(this.hash).show();
return false;
}).filter(':last').click();
$('#server_ip_input').focusin(function () {
if ($(this).attr("value") == "Server IP Address") {
$(this).attr("value", "");
}
});
$('#server_ip_input').focusout(function () {
if ($(this).attr("value") == "") {
$(this).attr("value", "Server IP Address");
}
});
$('#server_port_input').focusout(function () {
if ($(this).attr("value") == "") {
$(this).attr("value", "Server Port");
}
});
$('#server_port_input').focusin(function () {
if ($(this).attr("value") == "Server Port") {
$(this).attr("value", "");
}
});
$('#submit_query').submit(function() {
beginQuery($('#server_ip_input').attr("value"), $('#server_port_input').attr("value"));
return false;
});
if ( window.location.hash.toString().substring(0, 3) == "#s=") {
var info = window.location.hash.toString().substring(3).split(":", 2);
beginQuery(info[0], info[1]);
}
});
function beginQuery(ip, port) {
$('#team_information').hide();
if (typeof query != 'undefined') {
query.stop();
newQuery = new Query(ip, port);
newQuery.transferStatus(query.getStatus());
delete query;
query = newQuery;
delete newQuery;
} else {
query = new Query(ip, port);
}
query.update();
query.setIntervalHandle(setInterval(function() {
query.update();
}, 2000));
}
</script>
</head>
<body>
<!--[if lte IE 7]>
<div id="ie_warning">
This page does not support old web browsers. Please update to a newer version of Internet Explorer or try another browser.
</div>
<![endif]-->
<div id="container">
<div id="inner-container">
<div id="banner">
<div id="game-icon"></div>
<h1 id="server_name">Halo Status</h1>
<h2 id="server_ip">Enter the server information to begin</h2>
</div>
<div id="tabs">
<ul id="navigation">
<li class="hidden" id="server_select"><a href="#server-tab">Server Data</a></li>
<li class="hidden" id="player_select"><a href="#player-tab">Player Data</a></li>
<li class="active"><a href="#query-tab">New Query</a></li>
</ul>
<div id="server-tab">
<div class="information_box small left">
<h1>Server Information</h1>
<table>
<tr>
<td><span class="icon monitor"></span>Game version</td>
<td id="server_version"></td>
</tr>
<tr>
<td><span class="icon mc"></span>Player limit</td>
<td id="player_limit"><span id="player_count"></span><span id="activity_spark"></span></td>
</tr>
<tr>
<td><span class="icon map"></span>Current map</td>
<td id="current_map"></td>
</tr>
<tr>
<td><span class="icon flag"></span>Game type</td>
<td id="game_mode"></td>
</tr>
<tr>
<td><span class="icon cog"></span>Game variant</td>
<td id="game_variant"></td>
</tr>
<tr>
<td><span class="icon team"></span>Team game</td>
<td id="team_game"></td>
</tr>
<tr>
<td><span class="icon server"></span>Dedicated</td>
<td id="dedicated"></td>
</tr>
<tr>
<td><span class="icon padlock"></span>Password</td>
<td id="password"></td>
</tr>
</table>
</div>
<div class="information_box small right" id="map_information">
<h1>Map Information</h1>
<img src="images/map_information/unknown.jpg" alt="Map Information" title="Map description" />
</div>
<div class="information_box large" id="team_information">
<h1>
<span class="team_name">Team Information</span><span class="players">Players</span><span class="score">Score</span><span>% to victory</span>
</h1>
<div class="team_information" id="red">
<span class="team_name">Red Team</span><span class="players"></span><span class="score"></span><span class="bar"></span>
</div>
<div class="team_information" id="blue">
<span class="team_name">Blue Team</span><span class="players"></span><span class="score"></span><span class="bar"></span>
</div>
</div>
<div style="clear:both"></div>
<div class="information_box small left">
<h1>Player Settings</h1>
<table>
<tr>
<td>Number of lives</td>
<td id="lives"></td>
</tr>
<tr>
<td>Shields</td>
<td id="shields"></td>
</tr>
<tr>
<td>Health scale</td>
<td id="health"></td>
</tr>
<tr>
<td>Respawn wait</td>
<td id="respawn_delay"></td>
</tr>
<tr>
<td>Respawn growth</td>
<td id="respawn_growth"></td>
</tr>
<tr>
<td>Suicide penalty</td>
<td id="suicide_penalty"></td>
</tr>
<tr>
<td>Odd man out</td>
<td id="odd_man_out"></td>
</tr>
<tr>
<td>Invisibility</td>
<td id="juggernaut"></td>
</tr>
<tr>
<td>Infinite Grenades</td>
<td id="infinite_quadnading"></td>
</tr>
<tr>
<td>Radar mode</td>
<td id="radar_mode"></td>
</tr>
<tr>
<td>Indicator</td>
<td id="nav_points"></td>
</tr>
<tr>
<td>Weapon set</td>
<td id="weapon_set"></td>
</tr>
<tr>
<td>Starting equipment</td>
<td id="starting_equipment"></td>
</tr>
<tr>
<td>Friend indicators</td>
<td id="friend_indicators"></td>
</tr>
<tr>
<td>Friendly fire</td>
<td id="friendly_fire"></td>
</tr>
<tr>
<td>Friendly fire penalty</td>
<td id="friendly_fire_penalty"></td>
</tr>
<tr>
<td>Auto balance</td>
<td id="auto_balance"></td>
</tr>
</table>
</div>
<div class="information_box small right">
<h1>Game Settings</h1>
<table id="game_settings">
</table>
</div>
<div class="information_box small right">
<h1>Vehicle Information</h1>
<table id="vehicle_information">
</table>
</div>
</div>
<div id="player-tab">
<div class="information_box_temp small" id="test">
<h1>
<span class="playerrank">Rank</span><span class="playername">Name</span><span class="playerscore">Score</span><span class="playerping">Ping</span>
</h1>
<ul class="players visible">
</ul>
</div>
<!--
<div class="information_box small right">
<h1>Positional Chart</h1>
</div>
<div class="information_box large" id="team_information">
<h1>
<span class="team_name">Team Information</span><span class="players">Players</span><span class="score">Score</span><span>% to victory</span>
</h1>
<div class="team_information" id="red">
<span class="team_name">Red Team</span><span class="players"></span><span class="score"></span><span class="bar"></span>
</div>
<div class="team_information" id="blue">
<span class="team_name">Blue Team</span><span class="players"></span><span class="score"></span><span class="bar"></span>
</div>
</div>
<div class="information_box large">
<h1>Score vs. Time</h1>
</div>
-->
<div style="clear:both"></div>
<ul class="players merge">
</ul>
</div>
<div id="query-tab">
<form id="submit_query">
<input type="text" id="server_ip_input" value="Server IP Address" />
<input type="text" id="server_port_input" value="Server Port" />
<input type="submit" value="Query" />
</form>
</div>
</div>
<!-- You're free to edit/change the footer text as per the license terms -->
<footer>
<p>Halo Status designed & coded by Btcc22 - version 0.1</p>
</footer>
</div>
</div>
</body>
</html>