-
Notifications
You must be signed in to change notification settings - Fork 7
/
oldham-bingo.html
48 lines (46 loc) · 983 Bytes
/
oldham-bingo.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
<head>
<title>Oldham Bingo</title>
</head>
<body>
<h1>Play Bingo!</h1>
{{> homepage }}
</body>
<template name="homepage">
{{#if signed_in}}
{{> signin}}
{{else}}
{{> board}}
{{/if}}
{{> scoreboard}}
</template>
<template name="scoreboard">
<div id="scoreboard-container">
<h2>Current Players:</h2>
<ul>
{{#each players}}
<li>{{this.username}}<span class="num_squares">{{this.num_squares}}</span></li>
{{/each}}
</ul>
</div>
</template>
<template name="signin">
<div id="signin-container">
<form id="signin_form">
Sign In:
<input id="signin_username" type="text" />
</form>
</div>
</template>
<template name="board">
<div id="bingo-board-container">
<table id="bingo-board">
{{#each rows}}
<tr>
{{#each cols}}
<td id="{{id}}" {{#if acquired}} class="acquired" {{/if}}>{{text}}</td>
{{/each}}
</tr>
{{/each}}
</table>
</div>
</template>