-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
81 lines (76 loc) · 2.56 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>brdg.me - Board games by email and web</title>
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.5.0/pure-min.css">
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.5.0/grids-responsive-min.css">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css" />
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<script type="text/x-handlebars">
{{#if authToken}}
<div class="pure-menu pure-menu-open pure-menu-horizontal">
<ul>
<li>{{#link-to 'home'}}Home{{/link-to}}</li>
<li>{{#link-to 'games.index'}}Games{{/link-to}}</li>
<li>{{#link-to 'games.new'}}Start new game{{/link-to}}</li>
<li><a href="#" onclick="alert('Oh no you don\'t!');return false;">Poke all</a></li>
</ul>
</div>
<div class="pure-g">
{{outlet}}
<div class="pure-u-1 pure-u-md-4-24">
<div class="pure-menu pure-menu-open">
</div>
</div>
</div>
{{else}}
<div>
<label>Email: {{input type="email" value=authEmail disabled=requesting action="requestAuth"}}</label>
{{#if requesting}}
</div>
<div>
<label>Confirmation: {{input type="text" value=authConfirm action="confirmAuth"}}</label>
</div>
{{/if}}
{{/if}}
</script>
<script type="text/x-handlebars" id="games/new">
<div class="pure-u-1 pure-u-md-20-24">
<h2>New game form here</h2>
</div>
</script>
<script type="text/x-handlebars" id="games/index">
<div class="pure-u-1 pure-u-md-20-24">
<ul>
{{#each game in model}}
<li>{{#link-to 'games.show' game}}{{game.name}}{{/link-to}} with
{{#each player in game.playerList}}{{player}} {{/each}}
</li>
{{/each}}
</ul>
</div>
</script>
<script type="text/x-handlebars" id="games/show">
<div class="pure-u-1 pure-u-md-12-24">
<pre>{{{model.game}}}</pre>
<br />
<pre>{{{model.commands}}}</pre>
<div>
<label>Command: {{input type="text" value=command action="sendCommand"}}</label>
</div>
</div>
<div class="game-log pure-u-1 pure-u-md-8-24"><pre>{{{model.log}}}</pre></div>
</script>
<script src="js/libs/jquery-1.10.2.js"></script>
<script src="js/libs/handlebars-v1.3.0.js"></script>
<script src="js/libs/ember-1.8.1.js"></script>
<script src="js/libs/ember-data-1.0.0-beta.11.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.min.js"></script>
<script src="js/app.js"></script>
<!-- to activate the test runner, add the "?test" query string parameter -->
<script src="tests/runner.js"></script>
</body>
</html>