-
Notifications
You must be signed in to change notification settings - Fork 6
/
highscore.ejs
58 lines (55 loc) · 1.28 KB
/
highscore.ejs
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
<head>
<style>
body {
font-family:Courier, Georgia, Serif;
text-align:center;
vertical-align:text-top;
position:relative;
top:75;
color:white;
background-color:black;
}
#error {
color:red;
}
td {
text-align:center;
}
a {
color:red;
}
</style>
</head>
<body>
<img src='resources/mongoman/logo.png'/>
<h1>TOP 20 HIGHSCORE</h1>
<h2><a href="/">Back</a></h2>
<table border="1" align="center" width="90%">
<thead>
<th>Player name</th>
<th>Score</th>
<th>#Games</th>
<th>#MWins</th>
<th>#MLoss</th>
<th>#GWins</th>
<th>#GLoss</th>
<th>#Eaten</th>
</thead>
<%
for(var i = 0; i < players.length; i++) {
%>
<tr>
<td><%= players[i].name %></td>
<td><%= players[i].score %></td>
<td><%= players[i].numberofgames %></td>
<td><%= players[i].stats.mongoman.wins %></td>
<td><%= players[i].stats.mongoman.deaths %></td>
<td><%= players[i].stats.ghost.wins %></td>
<td><%= players[i].stats.ghost.deaths %></td>
<td><%= players[i].stats.ghost.eaten %></td>
</tr>
<%
}
%>
</table>
</body>