-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.html
76 lines (72 loc) · 3.51 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
<!DOCTYPE html>
<html lang="en" ng-app="status" ng-controller="StatusController">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="TrinityCore Server Status">
<meta name="author" content="ShinDarth">
<title>{{ serverName }} Server Status</title>
<link rel="shortcut icon" href="">
<script src="js/lib/angular.min.js"></script>
<script src="js/lib/ui-bootstrap.min.js"></script>
<script src="js/lib/loading-bar.min.js"></script>
<script src="js/lib/angular-tablesort.js"></script>
<script src="js/app/status.js"></script>
<script src="config.js"></script>
<script src="js/app/maps.js"></script>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/loading-bar.min.css">
<link rel="stylesheet" href="css/tablesort.css">
<link rel="stylesheet" href="css/style.css">
<!--[if IE]>
<script src="https://cdn.jsdelivr.net/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://cdn.jsdelivr.net/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container text-center">
<p class="h2">{{ serverName }} Server Status</p>
<br>
<div ng-show="apiLoaded">
<p class="h6 text-muted"><strong>{{ accounts }}</strong> active accounts from <strong>{{ IPs }}</strong> different IPs in last <strong>{{ pulseTime }}</strong> days</p>
<p class="lead h4">There are {{ onlinePlayers }} players online</p>
<p class="h4">
<img src="img/alliance_medium.png">
{{ allianceCount }} - {{ hordeCount }}
<img src="img/horde_medium.png">
</p>
<br>
<div class="table-responsive">
<table class="table table-striped table-bordered" ts-wrapper>
<thead>
<th class="text-center" ts-criteria="name|lowercase" ts-default="ascending">Character</th>
<th class="text-center" ts-criteria="class|parseInt">Class</th>
<th class="text-center" ts-criteria="race|parseInt">Race</th>
<th class="text-center" ts-criteria="faction|lowercase">Faction</th>
<th class="text-center" ts-criteria="level|parseInt">Level</th>
<th class="text-center" ts-criteria="guildName|lowercase">Guild</th>
<th class="text-center" ts-criteria="zone|parseInt">Map</th>
</thead>
<tbody>
<tr ng-repeat="player in players" ng-class="player.faction" ts-repeat>
<td><strong>{{ player.name }}</strong></td>
<td><img ng-src="img/class/{{ player.class }}.gif"></td>
<td><img ng-src="img/race/{{ player.race }}-{{ player.gender }}.gif"></td>
<td><img ng-src="img/{{ player.faction }}_min.png"></td>
<td><strong>{{ player.level }}</strong></td>
<td><strong>{{ player.guildName }}</strong></td>
<td><strong>{{ map[player.zone] }}</strong></td>
</tr>
</tbody>
</table>
</div>
</div>
<div ng-hide="apiLoaded">
<p class="lead h4 text-danger">ERROR: API not found, please edit your config.js file and set the path of your TrinityCore JSON API istance.</p>
</div>
<br>
<!-- I worked for free to build this software, please do not remove the credit! -->
<p class="small">Designed by <a target="_blank" href="https://github.com/ShinDarth/">ShinDarth</a></p>
</div>
</body>
</html>