-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathleaderboard.html
74 lines (65 loc) · 1.94 KB
/
leaderboard.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
<head>
</head>
<body>
<div id="outer">
{{renderPage}}
</div>
</body>
<template name="leaderboard">
<title>iPad - Scorekeeper</title>
<div class="leaderboard">
{{#each players}}
{{> player}}
{{/each}}
</div>
{{#if selected_name}}
<div class="details">
<div class="name">{{selected_name}}</div>
<input type="button" class="add50" value="+50" />
<input type="button" class="add100" value="+100" />
<input type="button" class="add250" value="+250" />
<input type="button" class="add500" value="+500" />
<input type="button" class="take50" value="-50" />
<input type="button" class="take100" value="-100" />
<input type="button" class="take250" value="-250" />
<input type="button" class="take500" value="-500" />
<input type="button" class="lose" value="0" />
<input type="button" class="random" value="Random" />
</div>
{{else}}
<div class="none">Click a player to select</div>
{{/if}}
{{> slideDisplay}}
</template>
<template name="player">
<div class="player {{selected}}">
<span class="name {{name}}">{{name}}</span>
<span class="score">{{score}}</span>
</div>
</template>
<template name="playerScore">
<title>Display - Scoreboard</title>
<div class="player">
{{#each players}}
<span class="name {{name}}">{{name}}</span>
<span class="score">{{score}}</span>
{{/each}}
</div>
</template>
<template name="slideDisplay">
<input type="button" class="lastSlide" value="<<" />
<input type="button" class="nextSlide" value=">>" />
<p>Current Slide: {{slides.slide}}</p>
</template>
<template name="admin">
<title>Admin - Scoreboard</title>
<div class="new_player">
<input id="new_player_name" type="text" />
<input type="button" class="add" value="Add Player" />
</div>
<div class="player">
{{#each players}}
<span class="name"><input type="button" value="X" class="delete" />{{name}}</span>
{{/each}}
</div>
</template>