-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
51 lines (44 loc) · 1.79 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
<!doctype html>
<html ng-app>
<head>
<link rel="stylesheet" href="style.css">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.4/angular.min.js"></script>
<script src="/socket.io/socket.io.js"></script>
<script src="cards.js"></script>
</head>
<body ng-controller="GameCtrl">
<div id="hideall" ng-show="newbie" ng-click="nvm()"></div>
<div id="popup" ng-show="newbie">
<h1>Please Enter a Name</h1>
<form ng-submit="submit()">
<input type="text" id="name" ng-model="name" autofocus>
<input type="submit" id="submit" value="submit">
</form>
</div>
<h1><div style="display: inline-block" ng-click="change()">{{name}}</div><div style="display: inline-block" ng-show="!observer">: {{points}}</div></h1>
<div id="hideall" ng-show="winner && !observer" ng-click="nextRound()"></div>
<div id="popup" ng-show="winner && !observer">
<h1 ng-show="winner">Winner: {{winner}}</h1>
<a href ng-click="nextRound()" ng-show="winner">Next Round</a>
</div>
<div class="card black">
{{question.text}}
</div>
<h1 ng-show="judge == 1 && played.length == 0">You are the judge this round and cannot play!</h1>
<div ng-repeat="response in responses" ng-click="remove($index)" class="card white">
{{response.text}}
</div><br>
<h1 ng-show="played.length > 0 && judge != 1">Played Cards</h1>
<h1 ng-show="played.length > 0 && judge == 1">Pick the Winner!</h1>
<div ng-repeat="play in played" ng-click="choose($index)" class="card white" ng-class='{ lost: play.lost }'>
{{play.card.text}}
</div>
<h1 ng-show="winner && observer">Winner: {{winner}}</h1>
<div ng-show="totalPoints && observer">
<h1>Current Points</h1>
<div ng-repeat="points in totalPoints">
<strong>{{points.name}}</strong>: {{points.points}}
</div>
</div>
</body>
</html>