-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlast5.hbs
More file actions
90 lines (79 loc) · 2.12 KB
/
last5.hbs
File metadata and controls
90 lines (79 loc) · 2.12 KB
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="240">
<style>
@font-face {
font-family: OpenSans;
src: url("/OpenSans.ttf") format("truetype");
}
@font-face {
font-family: Azonix;
src: url("/Azonix.otf") format("opentype");
}
aside {
font-family: "Azonix";
margin-bottom: 8px;
color: white;
}
aside { font-size: 16pt; }
.match {
font-family: 'OpenSans';
font-size: 8pt;
color: white;
}
old-aside {
position: absolute;
top: 0;
right: 0;
text-align: center;
width: 70px;
}
.widget {
width: 250px;
position: relative;
}
.map {
text-align: center;
color: #808080;
padding-bottom: 4px;
font-family: 'OpenSans';
font-size: 8pt;
}
.race-T {
color:#6495ed;
font-family: 'OpenSans';
font-size: larger;
}
.race-P {
color:lightgreen;
font-family: 'OpenSans';
font-size: larger;
}
.race-Z {
color:indianred;
font-family: 'OpenSans';
font-size: larger;
}
.match {
background-color: rgba(255,255,255,0.1);
border: 1px solid rgba(255,255,255,0.05);
padding: 4px;
margin-bottom: 6px;
text-align: center;
}
</style>
<body>
<div class="widget">
<aside>LAST MATCHES</aside>
{{#each matches}}
<div class="match">
{{winner.name}} <span class="race-{{race winner.race}}">{{race winner.race}}</span>
{{#if hasWinner }}>{{else}}={{/if}} <span class="race-{{race loser.race}}">{{race loser.race}}</span> {{loser.name}}
<br />
<span class="map">{{len}} on {{map}}</span>
</div>
{{/each}}
</div>
</body>
</html>