-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
262 lines (243 loc) · 13 KB
/
Copy pathindex.html
File metadata and controls
262 lines (243 loc) · 13 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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="TapAuth NFC attendance and reservations for the School of Engineering.">
<title>TapAuth - School of Engineering</title>
<link rel="icon" href="data:,">
<link rel="stylesheet" href="styles.css?v=20260725-1">
</head>
<body data-runtime="preview">
<main class="airhub-shell">
<header class="airhub-header">
<img class="soe-logo" src="static/soe_airhub_logo.png?v=20260722-10" alt="Asia Pacific College School of Engineering logo" width="92" height="92">
<div class="brand-block">
<h1><span>TapAuth</span><strong> - School of Engineering</strong></h1>
<time id="clock" aria-label="Current time">--:--</time>
</div>
</header>
<section class="tap-stage" aria-labelledby="tap-title" aria-live="polite">
<p class="tap-kicker">Tap your NFC card</p>
<h2 id="tap-title">Ready for tap-in or tap-out</h2>
<p id="tap-message">Tap your ID to check in or make an appointment.</p>
</section>
<button id="preview-tap" class="side-tap-control" type="button" aria-label="Open the tap visualization">
Tap visualization
</button>
<div id="tap-dialog-backdrop" class="modal-backdrop" hidden>
<section class="tap-dialog" role="dialog" aria-modal="true" aria-labelledby="dialog-title">
<button id="close-dialog" class="dialog-close" type="button" aria-label="Close">×</button>
<div id="tap-choice" class="dialog-step">
<h2 id="dialog-title">Hey Alex!</h2>
<p id="dialog-question" class="dialog-question">What would you like to do?</p>
<p id="dialog-identity" class="identity-line">Alex D. Santos - 2025-10482 - BS Computer Engineering</p>
<div id="registered-actions" class="dialog-actions">
<button class="choice-button primary-choice attendance-choice" type="button" data-tap-action="check_in">
<strong id="attendance-action-title">Check in</strong>
<span id="attendance-action-description">Record your attendance and enter AIRHub now.</span>
</button>
<button class="choice-button" type="button" data-tap-action="appointment">
<strong>Appointment</strong>
<span>Reserve the 3D printer or request time with a teacher.</span>
</button>
</div>
<p id="auto-checkin-countdown" class="countdown" role="status">
Automatic <span id="countdown-action-label">check-in</span> in <strong id="countdown-seconds">10</strong> seconds
</p>
<div id="unregistered-actions" class="unregistered-block" hidden>
<button id="open-registration" class="choice-button primary-choice" type="button">
<strong>Register this card</strong>
<span>Add your student details and continue immediately.</span>
</button>
</div>
</div>
<div id="appointment-choice" class="dialog-step" hidden>
<h2>Appointment</h2>
<p class="dialog-question">What would you like to reserve?</p>
<div class="dialog-actions service-dialog-actions">
<button class="choice-button service-choice" type="button" data-service="printing">
<img src="static/3d-printer.png" alt="" width="112" height="112" decoding="async">
<strong>3D Printer</strong>
</button>
<button class="choice-button service-choice" type="button" data-service="teacher">
<img src="static/teacher-reservation.png" alt="" width="112" height="112" decoding="async">
<strong>Teacher's Reservation</strong>
</button>
</div>
<button id="back-to-tap" class="text-button" type="button">Back</button>
</div>
<div id="registration-code-step" class="dialog-step" hidden>
<h2>Register this ID</h2>
<p class="dialog-question">Complete your student profile. This card will be linked automatically.</p>
<form id="registration-code-form" class="registration-code-form student-registration-form">
<div class="registration-name-grid">
<label><span>First name</span><input name="firstname" autocomplete="given-name" maxlength="100" required></label>
<label><span>Last name</span><input name="lastname" autocomplete="family-name" maxlength="100" required></label>
</div>
<label><span>Student number</span><input name="student_no" autocomplete="off" maxlength="64" required></label>
<label><span>Program / Course</span><input name="course" autocomplete="organization-title" maxlength="100" placeholder="BS Computer Engineering" required></label>
<p id="registration-code-message" class="code-message" role="alert"></p>
<button class="primary-action" type="submit">Register and continue</button>
</form>
<button id="back-from-registration" class="text-button" type="button">Back</button>
</div>
<div id="tap-result" class="dialog-step result-step" role="status" hidden>
<h2 id="tap-result-title">Check in recorded</h2>
<p id="tap-result-copy"></p>
<button id="finish-tap" class="primary-action" type="button">Done</button>
</div>
</section>
</div>
<div class="dashboard-grid">
<section class="panel logs-panel" aria-labelledby="logs-title">
<div class="panel-head">
<p>Activity</p>
<h2 id="logs-title">Recent Logs</h2>
</div>
<div class="table-wrap">
<table class="data-table logs-table">
<thead>
<tr><th>Event</th><th>Name</th><th>Student No.</th><th>Time</th></tr>
</thead>
<tbody id="logs-list">
<tr><td><span class="event-pill login">Login</span></td><td>Alex D. Santos</td><td>2025-10482</td><td>9:30 AM</td></tr>
<tr><td><span class="event-pill logout">Logout</span></td><td>Mika Dela Cruz</td><td>2024-03210</td><td>9:21 AM</td></tr>
<tr><td><span class="event-pill login">Login</span></td><td>Jamie Lim</td><td>2025-08217</td><td>9:08 AM</td></tr>
</tbody>
</table>
</div>
<button id="toggle-logs" class="table-more" type="button" hidden>
<span>See more</span>
<small id="logs-count"></small>
</button>
</section>
<section id="service-panel" class="panel reservations-panel" aria-labelledby="reservations-title">
<div class="panel-head">
<p>Schedule</p>
<h2 id="reservations-title">Current Reservations</h2>
</div>
<div class="table-wrap">
<table class="data-table reservations-table">
<thead>
<tr><th>Service</th><th>Date</th><th>Schedule / Queue</th><th>Status</th></tr>
</thead>
<tbody id="reservation-list">
<tr class="empty-row"><td colspan="4">No current reservations.</td></tr>
</tbody>
</table>
</div>
</section>
</div>
<section id="form-panel" class="form-panel" hidden>
<div class="form-modal-shell" role="dialog" aria-modal="true" aria-label="Reservation request form">
<div class="form-modal-bar">
<p>Reservation session closes in <strong id="reservation-countdown">60</strong> seconds</p>
<button id="cancel-reservation" class="secondary-action" type="button">Cancel</button>
</div>
<p id="reservation-form-message" class="form-error" role="alert"></p>
<form id="teacher-form" class="reservation-form compact-form" data-service="teacher" hidden novalidate>
<div class="panel-head">
<p>Appointment request</p>
<h2>Meet with a Teacher</h2>
</div>
<p class="form-identity">Alex D. Santos - 2025-10482 - BS Computer Engineering</p>
<fieldset>
<legend>Appointment details</legend>
<div class="form-grid">
<label class="wide">
<span>Teacher</span>
<select name="teacher" required>
<option value="">Select a teacher</option>
<option>Engr. Maria Reyes</option>
<option>Engr. Daniel Cruz</option>
<option>Prof. Angela Lim</option>
</select>
</label>
<label><span>Appointment Date</span><input name="date" type="date" required></label>
<label><span>Preferred Time</span><input name="time" type="time" required></label>
<label class="wide"><span>Purpose</span><input name="purpose" maxlength="120" required></label>
<label class="wide"><span>Additional Notes <small>Optional</small></span><textarea name="notes" rows="2" maxlength="500"></textarea></label>
</div>
</fieldset>
<label class="confirmation">
<input name="confirmation" type="checkbox" required>
<span>I confirm that the information provided is correct and understand that submitting this form does not automatically approve the appointment.</span>
</label>
<button class="primary-action" type="submit">Submit Appointment Request</button>
</form>
<form id="printing-form" class="reservation-form compact-form" data-service="printing" hidden novalidate>
<div class="panel-head">
<p>Facility request</p>
<h2>3D Printing Reservation</h2>
</div>
<p class="form-identity">Alex D. Santos - 2025-10482 - BS Computer Engineering</p>
<div class="step-bars" aria-label="Reservation progress">
<span class="active" data-step-bar="1">Schedule</span>
<span data-step-bar="2">Model</span>
<span data-step-bar="3">Confirm</span>
</div>
<fieldset class="form-step" data-step="1">
<legend>Schedule details</legend>
<div class="form-grid">
<label>
<span>Reservation Date</span>
<input name="date" type="date" required>
<small>Requests are queued by submission order for this date.</small>
</label>
<label>
<span>Estimated Printing Duration</span>
<select name="duration" required>
<option value="">Select duration</option>
<option value="30">Up to 30 minutes</option>
<option value="60">Up to 1 hour</option>
<option value="120">1-2 hours</option>
<option value="240">2-4 hours</option>
<option value="480">4-8 hours</option>
</select>
</label>
<label class="wide"><span>Project or Print Name</span><input name="projectName" maxlength="100" required></label>
</div>
</fieldset>
<fieldset class="form-step" data-step="2" hidden>
<legend>Model file</legend>
<div class="form-grid">
<label class="wide file-input">
<span>Upload 3D Model File</span>
<input name="modelFile" type="file" accept=".stl,.obj,.3mf" required>
<small>STL, OBJ, or 3MF. Maximum 100 MB.</small>
</label>
<label class="wide"><span>Additional Notes <small>Optional</small></span><textarea name="notes" rows="2" maxlength="500"></textarea></label>
</div>
</fieldset>
<fieldset class="form-step" data-step="3" hidden>
<legend>Review and confirm</legend>
<div class="review-card" aria-live="polite">
<p><span>Date</span><strong data-review="date">-</strong></p>
<p><span>Duration</span><strong data-review="duration">-</strong></p>
<p><span>Project</span><strong data-review="projectName">-</strong></p>
<p><span>File</span><strong data-review="modelFile">-</strong></p>
</div>
<label class="confirmation">
<input name="confirmation" type="checkbox" required>
<span>I confirm that the information provided is correct and understand that submitting this form does not automatically approve the reservation.</span>
</label>
<p class="notice">Reservation requests are subject to schedule availability, file review, machine condition, and approval by the assigned laboratory personnel.</p>
</fieldset>
<div class="step-actions">
<button class="secondary-action" type="button" data-step-prev hidden>Back</button>
<button class="primary-action" type="button" data-step-next>Next</button>
<button class="primary-action" type="submit" data-step-submit hidden>Submit Reservation Request</button>
</div>
</form>
<div id="success-message" class="success-message" role="status" hidden>
<strong>Request submitted</strong>
<p id="success-copy"></p>
<button id="new-request" class="secondary-action" type="button">New Request</button>
</div>
</div>
</section>
</main>
<script src="script.js?v=20260725-3" defer></script>
</body>
</html>