-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
297 lines (247 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Xonotic Game Server Info</title>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/s/bs/jqc-1.11.3,dt-1.10.10,b-1.1.0,b-colvis-1.1.0,b-html5-1.1.0,cr-1.3.0,se-1.1.0/datatables.min.css"/>
<link id="theme" rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="./static/css/fonts.css"/>
<link rel="stylesheet" type="text/css" href="./static/css/custom.css"/>
<link id="theme-custom" rel="stylesheet" type="text/css" href="./static/css/themes/default/custom.css"/>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<section class="container-fluid no-padding">
<!-- Fixed navbar -->
<nav id="main-nav" class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="./"><i class="fa fa-server"></i> Xonotic Game Server</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul id="main-navbar" class="nav navbar-nav navbar-tabs"></ul>
<ul id="nav-dev-controls" class="nav navbar-nav navbar-right">
<li id="theme-switcher-wrapper" class="navbar-btn"></li>
<li class="navbar-btn">
<div class="btn-group">
<a href="#refresh-servers" class="btn btn-sm btn-default" id="refresh-servers"><i class="fa fa-refresh" title="Refresh all servers"></i> Refresh Servers</a>
<a href="#editor-panel" class="btn btn-sm btn-default" id="editor-opener"><i class="fa fa-gear" title="Developer Tools"></i></a>
</div>
</li>
</ul>
</div><!-- .nav-collapse -->
</div>
</nav>
<noscript>
<h3 class="text-warning">This webpage requires javascript</h3>
</noscript>
<div class="tabbable" id="main-content">
<div class="tab-content">
</div>
</div><!-- .tabbable -->
<div id="footer">
<div class="container text-center">
<p class="text-muted credit">Licensed under MIT, available on <a href="https://github.com/z/xonotic-server-info-page" target="_blank" title="xonotic-server-info-page by -z- source code on GitHub"><i class="fa fa-github"> GitHub</i></a></p>
</div>
</div>
</section><!-- .content -->
<div id="editor-panel" class="panel panel-info">
<div class="panel-heading">
<h3 class="panel-title">Configuration Options <span class="pull-right"><i id="editor-close" class="fa fa-close"></i></span></h3>
</div>
<div class="panel-body">
<div id="editor-options" class="config-options">
<div class="alert alert-warning" role="alert">Options found here are in progress and might not be 100% working yet.</div>
<div id="global-config-options">
<div class="row">
<div class="col-xs-12">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">Chat</h4>
</div>
<div class="panel-body">
<label>IRC Channel</label> <input type="text" id="editor-opt-irc-channel" class="form-control input-sm" placeholder="IRC Channel" />
<label class="pad-top"><input type="checkbox" id="editor-opt-load-chat-button" /> Enable Load Chat Button</label>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">Global</h4>
</div>
<div class="panel-body">
<label><input type="checkbox" id="editor-opt-theme-switcher" /> Enable Theme Switcher</label>
</div>
</div>
<div class="buttons">
<button id="editor-export-config" class="btn btn-primary"><i class="fa fa-download"></i> Export Config</button>
<button class="btn btn-primary apply-config"><i class="fa fa-check-circle"></i> Apply</button>
<label><input type="checkbox" id="editor-opt-with-data" checked="checked" /> with resources</label>
</div>
</div><!-- .col -->
</div><!-- .row -->
</div><!-- #global-config-options -->
</div><!-- #editor-options -->
</div><!-- .panel-body -->
</div><!-- #editor-panel -->
<script id="server-template" type="text/x-handlebars-template">
<div class="row" id="serversSort">
{{#each servers}}
<div class="col-lg-6 server">
<!-- Current Server Stats -->
<div class="panel panel-default" id="server-{{id}}">
<div class="panel-heading handle">
<h3 class="panel-title">
<span class="server-name">Server Name</span>
<div class="pull-right server-tools edit-mode-option">
<a href="#" data-toggle="modal" data-target="#server-edit-{{id}}" title="Edit"><i class="fa fa-pencil"></i></a>
<a href="#" class="server-delete" data-server-id="{{id}}"><i class="fa fa-trash" class="Delete"></i></a>
</div>
</h3>
</div>
<div class="panel-body">
<div class="server-down alert alert-danger alert-dismissible" role="alert" style="display:none;">
<h4><i class="fa fa-exclamation-triangle"></i> Reported Down!</h4>
<p>The master server is reporting the configured game server address is DOWN.</p>
</div>
<div class="server-timeout alert alert-warning alert-dismissible" role="alert" style="display:none;">
<h4><i class="fa fa-clock-o"></i> Timeout</h4>
<p>The master server is reporting the configured game server address had a TIMEOUT.</p>
</div>
<div class="server-info">
<div class="row">
<div class="col-lg-3 col-md-4 col-sm-4">
<div class="thumbnail">
<img src="./resources/images/no_map_pic.png" title="no map pic" class="map-pic" onerror="imgError(this);" />
</div>
<h4 class="server-map"></h4>
<p><span class="server-numplayers">0</span> / <span class="server-maxplayers">0</span> players [ <span class="server-gametype">waiting...</span> ]
</div>
<div class="col-lg-9 col-md-8 col-sm-8">
<table id="server-{{id}}-playerlist" class="table table-striped table-bordered" cellspacing="0" width="100%">
<thead>
<tr>
<th>Name</th>
<th>Ping</th>
<th>Score</th>
<th>Team</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
</div><!-- .server-info -->
</div><!-- .panel-body -->
<div class="panel-footer">
<h5>
<span class="server-address">{{address}}</span>:
<span class="server-port">{{port}}</span>
<span class="pull-right">
<i class="server-refreshing fa fa-refresh fa-spin"></i>
<label>Auto Refresh: <input type="checkbox" class="timer-toggle" checked="checked" /></label>
</span>
</h5>
</div><!-- .panel-footer -->
</div><!-- .panel -->
<div class="modal fade" id="server-edit-{{id}}" tabindex="-1" role="dialog" aria-labelledby="Editing {{id}}">
<div class="modal-dialog modal-sm" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Editing {{id}}</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-xs-12">
<label>id (alpha-numeric)</label> <input type="text" class="editor-opt-server-id form-control input-sm" placeholder="myserver" value="{{id}}" />
</div>
</div>
<div class="row">
<div class="col-xs-8">
<label>Address</label> <input type="text" class="editor-opt-server-address form-control input-sm" placeholder="Server Address" value="{{address}}" />
</div>
<div class="col-xs-4">
<label>Port</label> <input type="text" class="editor-opt-server-port form-control input-sm" placeholder="Server Port" value="{{port}}" />
</div>
</div>
<div class="row">
<div class="col-xs-12">
<label>Game</label>
<select class="editor-opt-server-game form-control input-sm">
<option>xonotic</option>
<option>warsow</option>
<option>nexuiz</option>
<option>openarena</option>
<option>urbanterror</option>
<option>tremulous</option>
<option>steelstorm</option>
<option>wolfet</option>
<option>transfusion</option>
<option>quake</option>
</select>
</div><!-- .col -->
</div><!-- .row -->
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary apply-config" data-dismiss="modal">Save changes</button>
</div>
</div>
</div>
</div>
</div><!-- .col -->
{{/each}}
</div><!-- .row -->
</script>
<script id="edit-page-template" type="text/x-handlebars-template">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">Pages</h4>
</div>
<div class="panel-body">
<div id="pagesSort" class="list-group">
{{#each pages}}
<div class="list-group-item">
<label><input type="checkbox" id="editor-opt-page-{{id}}-button" /> {{title}}</label>
<span class="pull-right"><i class="fa fa-pencil"></i> <i class="fa fa-trash"></i></span>
</div>
{{/each}}
</div>
</div>
</div>
</script>
<script type="text/javascript" src="https://cdn.datatables.net/s/bs/jqc-1.11.3,dt-1.10.10,b-1.1.0,b-colvis-1.1.0,b-html5-1.1.0,cr-1.3.0,se-1.1.0/datatables.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script type="text/javascript" src="./static/vendor/dataTables/plugins/dataTables.conditionalPaging.js"></script>
<script type="text/javascript" src="./static/vendor/handlebars/handlebars.min-v4.0.5.js"></script>
<script type="text/javascript" src="./static/vendor/x2js/xml2json.min.js"></script>
<script type="text/javascript" src="./static/vendor/js-yaml/js-yaml.min.js"></script>
<script type="text/javascript" src="./static/vendor/marked/marked.min.js"></script>
<script type="text/javascript" src="./static/vendor/jquery-timer/jquery.timer.js"></script>
<script type="text/javascript" src="./static/vendor/konami/konami.js"></script>
<script type="text/javascript" src="./static/vendor/jquery-cookie/jquery.cookie.js"></script>
<script type="text/javascript" src="./static/vendor/jszip/jszip.min.js"></script>
<script type="text/javascript" src="./static/vendor/jszip-utils/jszip-utils.min.js"></script>
<script type="text/javascript" src="./static/vendor/FileSaver/FileSaver.min.js"></script>
<script type="text/javascript" src="./static/vendor/Sortable/Sortable.js"></script>
<script type="text/javascript" src="./static/vendor/packery/packery.pkgd.min.js"></script>
<script type="text/javascript" src="./static/vendor/draggabilly/draggabilly.pkgd.min.js"></script>
<!-- main -->
<script type="text/javascript" src="./static/js/app.js"></script>
</body>
</html>