-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
408 lines (352 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
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Time Trapper</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="geckos6.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans%7CRoboto" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- <link rel="icon" type="image/png" href="xxIMAGE.png" /> -->
</head>
<body>
<header class="nav-header">
<nav role="navigation" id="nav">
<h1 class="h1-nav-bar">Time Trapper</h1>
<div id="todayDateInstance">
<p style="margin: 0; position: fixed; top: 10px; left: 10px;" v-html="todayDate()"></p>
</div>
<div id="sessionTimeComponent">
<session-time style="text-align: left;"></session-time> <!-- Vue component -->
</div>
<button id="go-home" class="large material-icons">home</button>
<button id="show-menu-nav" class="large material-icons" disabled="true">settings</button>
<button id="hide-menu-nav" class="large material-icons">schedule</button>
</nav>
</header>
<!-- 1. HOME PAGE (WELCOME PAGE) -->
<div id="welcome-page" class="display-flex left-position-zero">
<header class="welcome-header">
<!-- <div class="nav primary-nav">
<ul>
<li><a href="#">Home</a>
</li>
<li><a href="#">Settings</a></li>
<li><a href="#">Schedule</a></li>
</ul>
</div> -->
<h1 class="big h1-welcome">Time Trapper</h1>
</header>
<div>
<h2 class="h2-welcome">Take <em>less</em> time to create time(sheets)!</h2>
<h2 class="h2-welcome">Quick lightweight scheduling for businesses</h2>
<div class="features">
<h4>Follow these easy steps:</h4>
<ul>
<li>Enter your business days, hours and number of employees needed per shift.</li>
<li>Then enter your employees' names, days of availability, and maximum hours assigned.</li>
<li>Then let Time Trapper create your schedule for you.</li>
</ul>
</div>
</div>
<div>
<p id="get-started">Get started =></p>
</div>
</div>
<!-- END OF HOME PAGE (WELCOME PAGE) -->
<!-- 2. SCHEDULE/TIMETABLE PAGE -->
<div id="schedule-container" class="display-none">
<main id="schedule">
<div id="left-legend">
<div id="upper-left-square">
</div>
<div id="days-of-week" >
<span>Monday</span>
<span>Tuesday</span>
<span>Wednesday</span>
<span>Thursday</span>
<span>Friday</span>
<span>Saturday</span>
<span>Sunday</span>
</div>
</div>
<div id="schedule-grid">
<div id="vertical-line1" class="line">
</div>
<div id="vertical-line2" class="line">
</div>
<div id="vertical-line3" class="line">
</div>
<div id="vertical-line4" class="line">
</div>
<div id="vertical-line5" class="line">
</div>
<div id="vertical-line6" class="line">
</div>
<div id="vertical-line7" class="line">
</div>
<div id="vertical-line8" class="line">
</div>
<div id="vertical-line9" class="line">
</div>
<div id="vertical-line10" class="line">
</div>
<div id="vertical-line11" class="line">
</div>
<div id="vertical-line12" class="line">
</div>
<div id="vertical-line13" class="line">
</div>
<div id="vertical-line14" class="line">
</div>
<div id="vertical-line15" class="line">
</div>
<div id="column-titles">
<p class="time">7am</p>
<p class="time">8am</p>
<p class="time">9am</p>
<p class="time">10am</p>
<p class="time">11am</p>
<p class="time">noon</p>
<p class="time">1pm</p>
<p class="time">2pm</p>
<p class="time">3pm</p>
<p class="time">4pm</p>
<p class="time">5pm</p>
<p class="time">6pm</p>
<p class="time">7pm</p>
<p class="time">8pm</p>
<p class="time">9pm</p>
</div>
<div id="day-rows">
<div id="day1" class="row row-day">
<div class="shift1">
</div>
<div class="shift2">
</div>
<div class="shift3">
</div>
<div class="shift4">
</div>
<div class="shift5">
</div>
<div class="shift6">
</div>
<div class="shift7">
</div>
</div>
<div id="day2" class="row row-day">
<div class="shift1">
</div>
<div class="shift2">
</div>
<div class="shift3">
</div>
<div class="shift4">
</div>
<div class="shift5">
</div>
<div class="shift6">
</div>
<div class="shift7">
</div>
</div>
<div id="day3" class="row row-day">
<div class="shift1">
</div>
<div class="shift2">
</div>
<div class="shift3">
</div>
<div class="shift4">
</div>
<div class="shift5">
</div>
<div class="shift6">
</div>
<div class="shift7">
</div>
</div>
<div id="day4" class="row row-day">
<div class="shift1">
</div>
<div class="shift2">
</div>
<div class="shift3">
</div>
<div class="shift4">
</div>
<div class="shift5">
</div>
<div class="shift6">
</div>
<div class="shift7">
</div>
</div>
<div id="day5" class="row row-day">
<div class="shift1">
</div>
<div class="shift2">
</div>
<div class="shift3">
</div>
<div class="shift4">
</div>
<div class="shift5">
</div>
<div class="shift6">
</div>
<div class="shift7">
</div>
</div>
<div id="day6" class="row row-day">
<div class="shift1">
</div>
<div class="shift2">
</div>
<div class="shift3">
</div>
<div class="shift4">
</div>
<div class="shift5">
</div>
<div class="shift6">
</div>
<div class="shift7">
</div>
</div>
<div id="day7" class="row row-day">
<div class="shift1">
</div>
<div class="shift2">
</div>
<div class="shift3">
</div>
<div class="shift4">
</div>
<div class="shift5">
</div>
<div class="shift6">
</div>
<div class="shift7">
</div>
</div>
</div>
</div> <!-- end of schedule-grid -->
</main>
</div>
<!-- END OF SCHEDULE/TIMETABLE PAGE -->
<!-- 3. SETTINGS PAGE (MAIN MENU) -->
<aside id="menu" class="display-none">
<section class="settings">
<h2 class="h2-settings">SETTINGS</h2>
<form>
<fieldset>
<legend><strong>Employee Settings</strong>
</legend>
<label class="form-content">
Add an employee:
</label>
<input id="employee-name" type="text" name="name" style="width: 250px" placeholder="name..." required />
<label class="form-content">
Available the following days:
</label>
<br />
<div id="avail-days">
<input type="checkbox" name="weekday" value="1" /><span> Monday</span><br/>
<input type="checkbox" name="weekday" value="2" /><span> Tuesday</span><br/>
<input type="checkbox" name="weekday" value="3" /><span> Wednesday</span><br/>
<input type="checkbox" name="weekday" value="4" /><span> Thursday</span><br/>
<input type="checkbox" name="weekday" value="5" /><span> Friday</span><br/>
<input type="checkbox" name="weekday" value="6" /><span> Saturday</span><br/>
<input type="checkbox" name="weekday" value="7" /><span> Sunday</span><br/>
</div>
<label class="form-content">Maximum available hours per week:
</label>
<input id="max-hours" type="number" min="4" step="4" name="maxHours" style="width: 50px" required />
<input id="add-employee" type="button" name="employee" value="add" />
</fieldset>
</form>
<form>
<fieldset>
<legend><strong>Business Settings</strong>
</legend>
<label class="form-content">
Add Business Days:
</label>
<select id="business-day" name="day">
<option value="Monday">Monday</option>
<option value="Tuesday">Tuesday</option>
<option value="Wednesday">Wednesday</option>
<option value="Thursday">Thursday</option>
<option value="Friday">Friday</option>
<option value="Saturday">Saturday</option>
<option value="Sunday">Sunday</option>
</select>
<br />
<label class="form-content">Set opening time:
</label>
<input id="open" type="time" min="07:00" max="21:00" name="open" value="07:00" required />
<br />
<label class="form-content">Set closing time:
</label>
<input id="close" type="time" min="07:00" max="21:00" name="close" value="18:00" required>
<label class="form-content">Set employees per shift:
</label>
<input id="num-shifts" type="number" min="1" max="3" name="staffRequired" style="width: 50px" value="1" required />
<input id="add-business-day" type="button" name="add-business-day" value="add">
</fieldset>
</form>
<div id="settings-buttons">
<button id="demo" type="button" name="demo" title="click to add demo data">demo</button>
<!-- <br /> -->
<button id="create" type="button" name="create" title="click once you have entered data to create your schedule" disabled>create </button>
<!-- <br /> -->
<button id="clear-all" type="button" name="clear all" title="click to clear all entries or demo data" disabled>clear all</button>
<!-- <br /> -->
<button id="save-all" type="button" name="clear demo" title="feature not yet available" disabled>save all</button>
<!-- <br /> -->
</div>
</section>
<section id="object-text-fields">
<div id="employee-object">
<h3>Employee object</h3>
<div class="fade-out-text">
</div>
<div class="scroll-texts">
<p id="paragraph1" class="menu-text">
</p>
</div>
</div>
<div id="timetable-object">
<h3>Timetable object</h3>
<div class="fade-out-text">
</div>
<div class="scroll-texts">
<p id="paragraph2" class="menu-text">
</p>
</div>
</div>
<div id="assigned-shifts-object">
<h3>Assigned shifts</h3>
<div id="effect1" class="fade-out-text">
</div>
<div class="scroll-texts">
<p id="paragraph3" class="menu-text">
</p>
</div>
</div>
</section>
</aside>
<!-- END OF SETTINGS PAGE (MAIN MENU) -->
<!-- SCRIPTS ******************** -->
<script type="text/javascript" src="assets/vue.min.js">
</script>
<script type="text/javascript" src="assets/time_related_functions.js">
</script>
<script type="text/javascript" src="demoObjects.js" defer>
</script>
<script type="text/javascript" src="geckos6.js" defer>
</script>
</body>
</html>