-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.html
More file actions
76 lines (71 loc) · 3.29 KB
/
admin.html
File metadata and controls
76 lines (71 loc) · 3.29 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
<!DOCTYPE html>
<html ng-app="hangman">
<head>
<title>AngularJS Leader Board</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- Bootstrap -->
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link rel="stylesheet" href="css/leaderboard.css"/>
</head>
<body>
<div class="container" ng-controller="MasterWord">
<h1> Add Player <span ng-click="addGame()" class="glyphicon glyphicon-plus"></span></h1>
<div class="well">
<table class="table">
<thead>
<tr>
<th>Players</th>
<th>Word</th>
<th>Set Word</th>
<th>Go To Game</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="game in games">
<td><li ng-repeat="player in game.players">{{player.name}}</li></td>
<td>{{game.secretWord}}</td>
<td>
<form ng-submit="setWord(game.secretWord, game)">
<input type="text" ng-model="game.secretWord" name="word">
<input class="btn btn-default" type="submit" id="submit" value="Set">
</form>
</td>
<td>
<button ng-click="joinGame(game)" class="btn btn-default">Join</button>
</td>
</tr>
</tbody>
</table>
</div>
<div ng-show="seeGame" class="well">
<span ng-click="hideGame()" class="glyphicon glyphicon-plus"></span>
<table class="table">
<thead>
<tr>
<th>Player Name</th>
<th>Guessed Letter</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="player in currentGame.players">
<td>{{player.name}}</td>
<td>{{player.correct}}{{player.incorrect}}</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- <div ng-controller="PlayersCtrl">
<input type="input" ng-model="name">
<input type="input" ng-model="gameID">
<button ng-click="addPlayer(name, gameID)">Join</button>
</div> -->
<script src="http://code.jquery.com/jquery-2.1.3.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/sugar/1.4.1/sugar-full.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
<script src="http://cdn.firebase.com/js/client/2.2.4/firebase.js"></script>
<script src="http://cdn.firebase.com/libs/angularfire/1.0.0/angularfire.min.js"></script>
<script src="js/admin.js"></script>
</body>
</html>