-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
222 lines (207 loc) · 15 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
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Planetside 2 Dashboard | v0.82</title>
<meta name="description" content="Planetside 2 World Monitor">
<meta name="viewport" content="width=device-width">
<link href="favicon.ico" rel="shortcut icon"/>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/css/bootstrap-combined.min.css">
<link rel="stylesheet" href="//api.ps2hq.com/latest/embed/map.css">
<link rel="stylesheet" href="css/ps2mon.css?v=0.82">
<script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
</head>
<body id="app">
<!--[if lt IE 7]><p class=chromeframe>Your browser is <em>ancient!</em> <a href="http://browsehappy.com/">Upgrade to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</p><![endif]-->
<header class="navbar navbar-inverse navbar-static-top">
<div class="navbar-inner">
<div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="brand" href="/ps2mon"><img class="ps2" src="img/ps2-logo.jpg" alt="Planetside 2" /> Dashboard</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li class="navbar-form form-inline">
<select data-bind="options: factions, optionsText: function(x) { return x.name }, optionsValue: function(x) { return x.id }, value: empire" title="select the target faction" class="input-large">
<option value="1">Vanu Sovereignty</option>
<option value="2">New Conglomerate</option>
<option value="3">Terran Republic</option>
</select>
<select title="select the server" class="input-large" data-bind="options: worlds, optionsText: function(item) { return item.name.en }, optionsValue: function(item) { return item.server_id }, value: world">
<option>Loading servers ...</option>
</select>
<div class="input-prepend" data-toggle="tooltip" title="Data refresh interval in seconds"> <span class="add-on"><i class="icon icon-time"></i></span>
<input type="number"
data-bind="value: refreshInterval" min="15" size="3" class="input-mini"
/>
</div>
<div class="input-prepend" data-toggle="tooltip" title="Show green indicator if the value of controlled regions is above percentage"> <span class="add-on"><i class="icon icon-ok"></i></span>
<input type="number"
data-bind="value: tresholdTerritoryHigh" min="1" size="2" class="input-mini"
/>
</div>
<div class="input-prepend" data-toggle="tooltip" title="Show red indicator if the value of controlled regions is below this percentage"> <span class="add-on"><i class="icon icon-remove"></i></span>
<input type="number"
data-bind="value: tresholdTerritoryLow" min="1" size="2" class="input-mini"
/>
</div>
</li>
<li>
<a href="https://github.com/apondman/ps2mon#readme" target="github">About</a>
</li>
<li>
<a href="#">v0.82 beta</a>
</li>
</ul>
</div>
</div>
</div>
</header>
<div class="container">
<div class="row-fluid">
<h2 data-bind="text: name, attr: { 'class': 'world-header faction-bg' + empire() }"></h2>
</div>
</div>
<section id="continents" class="container">
<div class="row-fluid">
<div data-bind="visible: continents().length < 1">Loading continents ...</div>
<ul class="thumbnails span12" data-bind="visible: showmap() == false, foreach: continents">
<li class="span4">
<div class="thumbnail">
<div class="btn-toolbar pull-left">
<div class="btn-group" id="continent-name">
<a href="#" class="btn">
<strong data-bind="text: name"></strong>
</a>
<a href="#" class="btn" title="Click to open live map" data-bind="click: showMap">
<i class="icon-globe"></i>
</a>
<a href="#" class="btn" title="Refresh indicator, click to refresh continent manually." data-bind="click: refresh, css: { 'btn-success': loading }">
<i class="icon-refresh"></i>
</a>
</div>
</div>
<div class="btn-toolbar pull-right">
<div class="btn-group">
<a href="#" class="btn" title="Facilities owned by faction, color indicates state of continent according to total percentage owned" data-bind="text: totals().facilities, css: { 'btn-inverse': regions().length < 1, 'btn-danger': status() < 0, 'btn-warning': status() == 0, 'btn-success': status() > 0 }"></a>
<a href="#" class="btn" title="Capture Rate" data-bind="css: { 'btn-success': captureRate() > 1, 'btn-danger': captureRate() < 1, 'btn-warning': captureRate() == 1 }"><i class="icon-white" data-bind="css: { 'icon-arrow-up': captureRate() > 1, 'icon-arrow-down': captureRate() < 1, 'icon-pause': captureRate() == 1 }"></i></a>
<a href="#" class="btn" title="Continent bonus indicator: black = unknown, green = faction, red = enemy faction, grey = neutral, click to override." data-bind="click: toggleBonus, css: {'btn-success': hasContinentBonus, 'btn-danger': bonus() > 0 , 'btn-inverse': bonus() == -1 }">
<i class="icon-star" data-bind="css: {'icon-white': bonus() == -1 }"></i>
</a>
</div>
</div>
<div class="clearfix"></div>
<div class="progress" title="Territory controlled in % by faction">
<div class="bar" data-bind="style:{ width: percentage(factions().nc) + '%' }"></div>
<div class="bar" style="background: purple;" data-bind="style:{ width: percentage(factions().vs) + '%' }"></div>
<div class="bar" style="background: #a52a2a;" data-bind="style:{ width: percentage(factions().tr) + '%' }"></div>
</div>
<div class="btn-toolbar">
<div class="btn-group">
<a href="#" class="btn" data-bind="css: { 'btn-success': hasBioBonus }" title="Health Regeneration Bonus indicator">
<i class="icon-heart"></i>
</a>
<a href="#" class="btn" data-bind="css: { 'btn-success': hasTechBonus }" title="Main Battle Tank Bonus indicator">
<i class="icon-plane"></i>
</a>
<a href="#" class="btn" data-bind="css: { 'btn-success': hasAmpBonus}" title="Phalanx Overheat Reduction Bonus indicator">
<i class="icon-fire"></i>
</a>
</div>
<div class="btn-group pull-right">
<a href="#" class="btn btn-inverse" title="Infantry resources per tick"><i class="icon-infantry"></i> <!--ko text: totals().infantry--><!--/ko--></a>
<a href="#" class="btn btn-inverse" title="Mechanized resources per tick"><i class="icon-mechanized"></i> <!--ko text: totals().mechanized--><!--/ko--></a>
<a href="#" class="btn btn-inverse" title="Aerospace resources per tick"><i class="icon-aerospace"></i> <!--ko text: totals().aerospace--><!--/ko--></a>
</div>
<div class="clearfix"></div>
</div>
</div>
</li>
</ul>
<div id="map-indicators" class="btn-toolbar" data-bind="visible: showmap, if: zone">
<div class="btn-group">
<a href="#" class="btn">
<strong data-bind="text: zone().name"></strong>
</a>
<a href="#" class="btn" title="Facilities owned by faction, color indicates state of continent according to total percentage owned" data-bind="text: zone().totals().facilities, css: { 'btn-inverse': zone().regions().length < 1, 'btn-danger': zone().status() < 0, 'btn-warning': zone().status() == 0, 'btn-success': zone().status() > 0 }">
</a>
<a href="#" class="btn" title="Capture Rate" data-bind="css: { 'btn-success': zone().captureRate() > 1, 'btn-danger': zone().captureRate() < 1, 'btn-warning': zone().captureRate() == 1 }">
<i class="icon-white" data-bind="css: { 'icon-arrow-up': zone().captureRate() > 1, 'icon-arrow-down': zone().captureRate() < 1, 'icon-pause': zone().captureRate() == 1 }"></i>
</a>
<a href="#" class="btn" title="Continent bonus indicator: black = unknown, green = faction, red = enemy faction, grey = neutral, click to override." data-bind="click: zone().toggleBonus, css: {'btn-success': zone().hasContinentBonus, 'btn-danger': zone().bonus() > 0 , 'btn-inverse': zone().bonus() == -1 }">
<i class="icon-star" data-bind="css: {'icon-white': zone().bonus() == -1 }"></i>
</a>
</div>
<div class="btn-group">
<a href="#" class="btn" data-bind="css: { 'btn-success': zone().hasBioBonus }" title="Health Regeneration Bonus indicator">
<i class="icon-heart"></i>
</a>
<a href="#" class="btn" data-bind="css: { 'btn-success': zone().hasTechBonus }" title="Main Battle Tank Bonus indicator">
<i class="icon-plane"></i>
</a>
<a href="#" class="btn" data-bind="css: { 'btn-success': zone().hasAmpBonus}" title="Phalanx Overheat Reduction Bonus indicator">
<i class="icon-fire"></i>
</a>
</div>
<div class="btn-group">
<a href="#" class="btn btn-inverse" title="Infantry resources per tick"><i class="icon-infantry"></i> <!--ko text: zone().totals().infantry--><!--/ko--></a>
<a href="#" class="btn btn-inverse" title="Mechanized resources per tick"><i class="icon-mechanized"></i> <!--ko text: zone().totals().mechanized--><!--/ko--></a>
<a href="#" class="btn btn-inverse" title="Aerospace resources per tick"><i class="icon-aerospace"></i> <!--ko text: zone().totals().aerospace--><!--/ko--></a>
</div>
<div class="btn-group">
<a href="#" class="btn" data-bind="click: closeMap">
<i class="icon-th-large"></i> Back to dashboard
</a>
</div>
<div class="progress" title="Territory controlled in % by faction">
<div class="bar" data-bind="style:{ width: zone().percentage(zone().factions().nc) + '%' }"></div>
<div class="bar" style="background: purple;" data-bind="style:{ width: zone().percentage(zone().factions().vs) + '%' }"></div>
<div class="bar" style="background: #a52a2a;" data-bind="style:{ width: zone().percentage(zone().factions().tr) + '%' }"></div>
</div>
</div>
<div id="mapContainer" style="height: 600px" data-bind="visible: showmap"></div>
<div class="text-center">
<div class="input-prepend" title="The following url can be used as bookmark to jump to the selected server and faction.">
<span class="add-on"><i class="icon-bookmark"></i></span>
<input type="text" class="input-online-block" data-bind="value: bookmarkUrl, click: selectText" />
</div>
</div>
</div>
</section>
<footer class="footer">
<div class="container">
<ul class="inline">
<li><a href="https://github.com/apondman/ps2mon/commits/gh-pages" target="github">Changelog</a></li>
<li class="muted">|</li>
<li><a href="https://github.com/apondman/ps2mon/issues" target="github">Issues</a></li>
<li class="muted">|</li>
<li><a href="http://www.cut-throats.co.uk" target="ct">Cut-Throats</a></li>
</ul>
<small>PS2 Dashboard © 2013 <a href="mailto:[email protected]">Armand Pondman</a>.<br />PlanetSide is a registered trademark of Sony Online Entertainment LLC.</small>
</div>
</footer>
<!-- Library CDN's and app -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.1.min.js"><\/script>')</script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-url-parser/2.2.1/purl.min.js"></script>
<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/knockout/2.2.1/knockout-min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/linq.js/2.2.0.2/linq.min.js"></script>
<script src="//api.ps2hq.com/latest/embed/map.js"></script>
<script src="js/ps2mon.min.js?v=0.82"></script>
<!-- Google Analytics -->
<script>
var _gaq=[['_setAccount','UA-917348-6'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
</body>
</html>