-
Notifications
You must be signed in to change notification settings - Fork 0
/
layout.html
99 lines (96 loc) · 3.52 KB
/
layout.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
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>{{.Game.Title}}</title>
<link rel="stylesheet" type="text/css" href="/static/shared.css" />
<link
rel="stylesheet"
type="text/css"
href="/static/{{.Game.Theme}}.css"
/>
<link
rel="shortcut icon"
type="image/x-icon"
href="/static/favicon.ico"
/>
</head>
<body>
<div class="container">
{{range .Game.Teams}}
<div id="team-{{.Class}}" class="team {{.Class}}">
<div class="misses">
<img src="/static/images/x.png" class="x" />
<img src="/static/images/x.png" class="x" />
<img src="/static/images/x.png" class="x" />
</div>
{{range .Members}}
<div class="member">
{{if eq .Name "art"}}
<div class="art"><img src="{{.Image}}" /></div>
{{else}}
<div class="avatar"><img src="{{.Image}}" /></div>
<div class="name">{{.Name}}</div>
{{end}}
</div>
{{end}}
</div>
{{end}}
{{if eq .Round.Number 0}}
<img src="/static/images/{{.Game.Theme}}-cover.jpg" class="cover" />
{{else}}
<h1>
{{range .Game.Teams}}
<span class="team-score {{.Class}}" id="{{.Class}}"
><span class="name">{{.Name}}</span><br /><span
class="count"
>0</span
></span
> {{end}}
</h1>
<h3 class="question">{{.Round.Question}}</h3>
<div class="board">
{{range .Round.Responses}}
<div class="card" data-points="{{.Points}}">
<div class="front">
<span class="rank">{{.Rank}}</span>
</div>
<div class="back">
<div class="answer">{{.Answer}}</div>
<div class="score">{{.Score}}</div>
</div>
</div>
{{end}}
</div>
{{end}}
{{if eq .Round.Number 0}}
<div class="helpful-buttons">
<a id="next" href="/{{.Next}}"><button>Let's Play!</button></a>
</div>
{{else}}
<h3>Round: {{.Round.Number}} Score: <span id="score">0</span></h3>
<div class="helpful-buttons">
<button id="points">Award Points</button>
{{if ne .Next 0}}  |
<a id="next" href="/{{.Next}}"><button>Next Round</button></a>
{{end}}
</div>
{{end}}
</div>
<audio id="right" src="/static/sounds/right.wav"></audio>
<audio id="wrong" src="/static/sounds/wrong.wav"></audio>
<audio
id="intro"
src="/static/sounds/{{.Game.Theme}}-intro.wav"
></audio>
<script
type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"
></script>
<script
type="text/javascript"
src="https://cdn.rawgit.com/nnattawat/flip/v1.1.1/dist/jquery.flip.min.js"
></script>
<script type="text/javascript" src="/static/index.js"></script>
</body>
</html>