-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathww.html
149 lines (141 loc) · 6.54 KB
/
ww.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
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
140
141
142
143
144
145
146
147
148
149
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Workout Wager</title>
<meta name='viewport' content='width=device-width, initial-scale=1, user-scalable=no, minimal-ui' />
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
<link href="css/ww.css" rel="stylesheet">
<script src="js/lib/jquery-1.11.1.min.js"></script>
<script src="js/lib/bootstrap.3.2.0.min.js"></script>
<!-- Firebase -->
<script src="js/lib/firebase.1.0.17.min.js"></script>
<script type="text/javascript" src="bower_components/angular/angular.min.js"></script>
<script type="text/javascript" src="bower_components/angular/angular-route.js"></script>
<!-- AngularFire Library -->
<script src="js/lib/angularfire.0.7.1.min.js"></script>
<script src="js/lib/underscore-min.1.6.0.js"></script>
<script type='text/javascript' src='js/lib/firebase-simple-login.1.6.1.min.js'></script>
<script type="text/javascript" src="js/ww.js"></script>
</head>
<body ng-app="myApp">
<nav class="navbar navbar-default navbar-fixed-bottom" role="navigation">
<div class="col-xs-6 text-center home">
<a href="#Checkin"><span class="glyphicon glyphicon-check btn-lg"></span></a>
</div>
<div class="col-xs-6 text-center">
<a href="#Wager"><span class="glyphicon glyphicon-list btn-lg"></span></a>
</div>
</nav>
<div ng-view></div>
<!-- Temporary Templates until webserver is up -->
<script type="text/ng-template" id='login.html'>
<div class="panel panel-default">
<div class="panel-body">
<div class="input-group">
<span class="input-group-addon">Email</span>
<input type="email" class="form-control" ng-model='email' placeholder='[email protected]'>
</div>
<div> </div>
<div class="input-group">
<span class="input-group-addon">Password</span>
<input type="password" class="form-control" ng-model='password'>
</div>
<div> </div>
<button type="button" ng-click="login()" class="btn btn-primary full-width">
<span class=""></span>Login
</button>
<div> </div>
<button type="button" ng-click="logout()" class="btn btn-primary full-width">
<span class=""></span>Logout
</button>
</div>
</div>
</script>
<script type="text/ng-template" id="checkin.html">
<div class="panel panel-default">
<div class="panel-heading text-center">Have You Worked Out Today?</div>
<div class="panel-body">
<div class="input-group">
<span class="input-group-addon">Code</span>
<input type="tel" class="form-control" name="input" ng-model="code" minLength="4" maxLength="4" pattern='[0-9]*' placeholder="####">
</div>
<div> </div>
<div class="input-group">
<span class="input-group-addon">Message</span>
<input type="text" class="form-control" ng-model="checkinMessage" placeholder="optional"></input>
</div>
<div> </div>
<button type="button" ng-click="checkin()" class="btn btn-primary full-width">
<span class="glyphicon glyphicon-check"></span> Check In!
</button>
<div> </div>
<button class="btn btn-default full-width" data-toggle="modal" data-target="#myModal">
<span class="glyphicon glyphicon-list-alt"></span> Current Standings
</button>
</div>
</div>
</script>
<script type="text/ng-template" id="wager.html">
<h3 class="text-center">{{fullDay|date:'fullDate'}}</h3>
<ul class="list-group">
<li class="list-group-item" ng-repeat="player in players | orderObjectBy:'name'" ng-show="player.selectedDice"ng-class="{checkedIn : player.checkedInDay == currentDay}" ng-click="showDetails = ! showDetails">
<h4><a href="">{{player.name}}</a>
<span class="glyphicon pull-right" ng-class="{'glyphicon-ok' : player.checkedInDay == currentDay, 'glyphicon-remove' : player.checkedInDay != currentDay}"></span>
</h4>
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="{{getPercentage(player)}}" aria-valuemin="0" aria-valuemax="100" ng-style="{width : ( getPercentage(player) + '%' ) }">
</div>
<span class="checkinValue text-center">{{getCheckinCount(player)}} / 3</span>
</div>
<ul class="list-group" ng-show="showDetails">
<li class="list-group-item" ng-repeat="checkin in player.checkins | orderObjectBy:'time':true ">
<div>{{checkin.time | date:'fullDate'}}</div>
<div>{{checkin.time | date:'mediumTime'}}</div>
<div ng-show="checkin.message"><strong>{{checkin.message}}</strong></div>
</li>
</ul>
</li>
</ul>
</script>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel">Current Standings</h4>
</div>
<div class="modal-body">
<!-- Temporary Hardcode -->
<ul class="list-group">
<li class="list-group-item">Total Pot is <strong>$67.00</strong></li>
<li class="list-group-item">Chris is contributing $17.00</li>
<li class="list-group-item">Mel is contributing $12.00</li>
<li class="list-group-item">Michelle is contributing $17.00</li>
<li class="list-group-item">Monica is contributing $7.00</li>
<li class="list-group-item">Rosand is contributing $2.00</li>
<li class="list-group-item">Sedine is contributing $12.00</li>
</ul>
<p>Please ask Game Master Amir if you have any clarifying questions while the rules are being finalized.</p>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!--
<nav class="navbar navbar-default navbar-fixed-bottom" role="navigation">
<div class="container">
<div class="col-xs-6">
<button id="" type="button" class="btn btn-default">
<span class="glyphicon glyphicon-check"></span> Check In!
</button>
</div>
<div class="col-xs-6">
<span class="glyphicon glyphicon-check center-block"></span>
</div>
</div>-->
</nav>
</body>
</html>