-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmaxwolf.html
More file actions
139 lines (125 loc) · 3.98 KB
/
maxwolf.html
File metadata and controls
139 lines (125 loc) · 3.98 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<head>
<title>maxwolf</title>
<script src="/bower_components/jquery/dist/jquery.js"></script>
<script src="/bower_components/jquery.countdown/dist/jquery.countdown.js"></script>
</head>
<body class="container">
</body>
<template name="home">
<div class="row">
<div class="col-md-12">
<div class="jumbotron">
<h1>maxwolf</h1>
<br /><br />
<h3>A game about wolves</h3>
<p>
{{> loginButtons}}
{{#if currentUser}}
{{> startGame}}
{{/if}}
</p>
</div>
</div>
</div>
</template>
<template name="startGame">
<br />
<br />
<form class="pickname">
<!-- Name: <input type="text" name="username"/> -->
<button>List Rooms</button>
</form>
</template>
<template name="rooms">
<br />
<br />
{{#each rooms}}
<li>{{name}} <a href="" class="joinGame">Join!</a></li>
{{/each}}
<form class="createRoom">
<!-- Name: <input type="text" name="username"/> -->
<input type="text" name="room" placeholder="Room Name" />
<button>New Room</button>
</form>
</template>
<template name="game">
<div class="row">
<div class="col-md-12">
<h1>You are now playing <i>maxwolf</i></h1>
<button class="reset-game-state btn btn-default">Reset game</button>
<button class="next-game-state btn btn-default">Next State</button>
<button class="suicide btn btn-default">Commit honourable seppuku</button>
<br />
<h3 id="day-night-header">{{#if daytime}}Day{{else}}Night{{/if}} {{day}}</h3> <div id="state-timer"></div>
{{#if currentUser.profile.alive}}<h4>You are a {{currentUser.profile.role}} {{#if isWolf}}<img class="wolf-paw-icon" src="./paw2.png" />{{/if}}</h4>{{/if}}
{{#if isGameOver}}<p>Game Over! The {{winningTeam}} Win!</p>{{/if}}
{{#unless currentUser.profile.alive}}<h2 style="color:red">you're dead bro</h2>{{/unless}}
</div>
{{#if alertText}}
<div class="col-md-4">
<div class="alert alert-danger" role="alert">
{{alertText.text}}
</div>
</div>
{{/if}}
</div>
<div class="row">
<div class="col-md-6">
<table class="table player-table">
<thead>
<tr>
<th>Player</th>
{{#if GLOBAL_DEBUG}}
<th>Role</th>{{/if}}
<th>Actions</th>
<th>Vote Count</th>
{{#if isWolf}}
<th>Werewolf Actions</th>
<th>Werewolf Vote Count</th>
{{/if}}
</tr>
</thead>
<tbody>
{{#each alivePlayers}}
<tr class="{{#unless profile.alive}}dead{{/unless}}">
<td>{{username}} {{#if isWolf}}{{#if playerIsWerewolf}}<img class="wolf-paw-icon" src="./paw2.png" />{{/if}}{{/if}}</td>
{{#if GLOBAL_DEBUG}}
<td>{{profile.role}}</td>{{/if}}
<td>{{#if villageVoteActive}}<a href="" class="villageVote">vote</a>{{/if}}</td>
<td>{{voteCountVillage}} {{#if isCurrentVillageVoteLeader}}<span class="glyphicon glyphicon-star" aria-hidden="true"></span>{{/if}}</td>
{{#if isWolf}}
<td><a href="" class="wolfVote">vote</a></td>
<td>{{voteCountWolf}} {{#if isCurrentWolfVoteLeader}}<span class="glyphicon glyphicon-star" aria-hidden="true"></span>{{/if}}</td>
{{/if}}
</tr>
{{/each}}
</tbody>
</table>
</div>
<div class="col-md-2">
</div>
<div class="col-md-4">
{{#if hasElements deadPlayers}}
<div class="graveyard">
<h4>town graveyard get fucked losers</h4>
<ul>
{{#each deadPlayers}}
<li><strong>{{username}} - {{profile.reveal_role}}</strong>. Death: {{profile.death}} at {{profile.death_location}}</li>
{{/each}}
</ul>
</div>
{{/if}}
</div>
</div>
{{isCurrentVillageVoteLeader}}
</template>
<template name="roleList">
<ul>
{{#each roles}}
{{> role}}
{{/each}}
</ul>
</template>
<template name="role">
<li>{{name}}</li>
</template>