-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
248 lines (217 loc) · 11.3 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
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>NYC Resistor - Laser Tracker</title>
<!-- Bootstrap -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<link href="css/font-awesome.min.css" rel="stylesheet">
</link>
<link href="css/social-buttons.css" rel="stylesheet">
<link>
<link href="css/app.css" rel="stylesheet">
</link>
<link rel="icon" type="image/png" href="img/logo-sm.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header collapse navbar-collapse">
<a class="navbar-brand"><img src="img/logo.png" /></a>
<a class="navbar-brand hidden-sm" href="#">NYC Resistor Laser Tracker</a>
<a class="navbar-brand visible-sm" href="#">NYCR Laser</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<ul class="nav navbar-nav navbar-right">
<a class="navbar-brand visible-xs"><img src="img/logo.png" /></a>
<span id="displayName"></span>
<button type="button" class="btn btn-default navbar-btn btn-primary" data-toggle="modal" data-target="#trackModal">Track
a Job</button>
<button id="tabButton" type="button" class="btn btn-default navbar-btn hidden" onclick="LASERTRACKER.payTab()">Pay
my tab
</button>
<button id="adminButton" type="button" class="btn btn-default navbar-btn btn-danger hidden" onclick="LASERTRACKER.rebuildTotals()">Rebuild
Totals
</button>
<button id="loginButton" type="button" class="btn btn-default navbar-btn" data-toggle="modal" data-target="#loginModal">Login</button>
<button id="logoutButton" type="button" class="btn btn-default navbar-btn hidden" onclick="LASERTRACKER.logout()">Logout</button>
</ul>
</div><!-- /.container-fluid -->
</nav>
<div class="container">
<h2>The new laser has raised <span id="total-paid">$0.00</span> from <span id="total-time">0:00:00</span> hours.</h2>
<div class="progress">
<div id="total-progress" class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="0" aria-valuemin="0"
aria-valuemax="100" style="width: 0%">
</div>
</div>
</div>
<div class="container">
<div class="row">
<table id="ledger" class="table table-striped table-bordered">
<tr class="header">
<th>Date/Time</th>
<th>Name</th>
<th>Project</th>
<th>Time Used</th>
<th>Price</th>
<th>Total</th>
<th>Tendered</th>
<th>Method</th>
</tr>
</table>
</div>
</div>
<div id="loginModal" class="modal fade">
<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">Login</h4>
</div>
<div class="modal-body">
<p>Please log in with one of the services below. We will not use or store your information beyond this identification
step.
</p>
<p class="center">
<button class="btn btn-facebook" onclick="LASERTRACKER.login('facebook')"><i class="fa fa-facebook"></i> | Facebook</button>
<button class="btn btn-twitter" onclick="LASERTRACKER.login('twitter')"><i class="fa fa-twitter"></i> | Twitter</button>
<button class="btn btn-github" onclick="LASERTRACKER.login('github')"><i class="fa fa-github"></i> | GitHub</button>
<button class="btn btn-google" onclick="LASERTRACKER.login('google')"><i class="fa fa-google"></i> | Google</button>
</p>
<div class="alert alert-warning" role="alert"><strong>Warning!</strong> Do not use the laser computer to log into
the laser tracker. The laser computer should not be considered secure. Use your laptop or phone instead.</div>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<div id="trackModal" class="modal fade">
<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">Track a Job</h4>
</div>
<div class="modal-body">
<form role="form">
<div class="form-group">
<label class="control-label" for="name">Name</label>
<input type="text" class="form-control" id="name" placeholder="Enter your name">
</div>
<div class="form-group">
<label class="control-label" for="name">Project</label>
<input type="text" class="form-control" id="project" placeholder="What are you working on">
</div>
<div class="form-group">
<label class="control-label" for="name">Laser Time</label>
<input type="text" class="form-control" id="time" placeholder="MM:SS" onchange="LASERTRACKER.updateTotal();">
</div>
<div class="form-group">
<label class="control-label" for="name">Price</label>
<select id="price" class="form-control" onchange="LASERTRACKER.updateTotal(); LASERTRACKER.rememberPrice();">
<option value="0.25">NYC Resistor Member - $0.25</option>
<option value="1.00">Non-member Laser Class Certified - $1.00</option>
<option value="2.00">Everyone else - $2.00</option>
</select>
</div>
<div class="form-group">
<label class="control-label" for="name">Total</label>
<input type="text" class="form-control" id="total" value="$0.00" readonly>
</div>
<div class="form-group">
<label class="control-label" for="payvia">Pay via</label>
<div role="tabpanel">
<ul id="payvia" class="nav nav-pills" role="tablist">
<li role="presentation" class="active"><a href="#cash" aria-controls="cash" role="tab" data-toggle="tab">Cash</a></li>
<li role="presentation"><a href="#paypal" aria-controls="paypal" role="tab" data-toggle="tab">PayPal</a></li>
<li role="presentation"><a href="#tab" aria-controls="tab" role="tab" data-toggle="tab">Your Tab</a></li>
</ul>
</div>
<div class="tab-content">
<hr />
<div role="tabpanel" class="tab-pane active" id="cash">
<div class="alert alert-info">Please make sure you've put the cash in the metal box next to the laser.</div>
</div>
<div role="tabpanel" class="tab-pane" id="paypal">
<div class="alert alert-info">Send the total to [email protected].</div>
<div class="alert alert-danger"><strong>Don't login to PayPal from the laser computer.</strong></div>
</div>
<div role="tabpanel" class="tab-pane" id="tab">
<div class="alert alert-info">Please log in to establish a tab.</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" onclick="LASERTRACKER.saveTrack()">Save changes</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<div id="tabModal" class="modal fade">
<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">Pay your Tab</h4>
</div>
<div class="modal-body">
<form role="form">
<div class="form-group">
<label class="control-label" for="name">Jobs</label>
<input type="text" class="form-control" id="tab-jobs" value="0" readonly>
</div>
<div class="form-group">
<label class="control-label" for="name">Time</label>
<input type="text" class="form-control" id="tab-time" value="0:00:00" readonly>
</div>
<div class="form-group">
<label class="control-label" for="name">Total</label>
<input type="text" class="form-control" id="tab-total" value="$0.00" readonly>
</div>
<div class="form-group">
<label class="control-label" for="tab-payvia">Pay via</label>
<div role="tabpanel">
<ul id="tab-payvia" class="nav nav-pills" role="tablist">
<li role="presentation" class="active"><a href="#tab-cash" aria-controls="tab-cash" role="tab" data-toggle="tab">Cash</a></li>
<li role="presentation"><a href="#tab-paypal" aria-controls="tab-paypal" role="tab" data-toggle="tab">PayPal</a></li>
</ul>
</div>
<div class="tab-content">
<hr />
<div role="tabpanel" class="tab-pane active" id="tab-cash">
<div class="alert alert-info">Please make sure you've put the cash in the metal box next to the laser.</div>
</div>
<div role="tabpanel" class="tab-pane" id="tab-paypal">
<div class="alert alert-info">Send the total to [email protected].</div>
<div class="alert alert-danger"><strong>Don't login to PayPal from the laser computer.</strong></div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" onclick="LASERTRACKER.savePayTab()">Save changes</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<script src="https://cdn.firebase.com/js/client/2.0.6/firebase.js"></script>
<script src="js/date.js"></script>
<script src="js/app.js"></script>
</body>
</html>