forked from dbecker1/BuzzcardScanning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
156 lines (141 loc) · 7.47 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
<!DOCTYPE HTML>
<!--
Buzzcard Scanning
Highlights by HTML5 UP
Daniel Becker & Cliff Panos
-->
<html>
<head>
<title>Attendance</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
</head>
<body class="is-preload">
<!-- Custom Blurred Background -->
<div class="background-image"></div>
<!-- Header -->
<section id="header">
<header class="major">
<div>
<h1>Recitation Attendance</h1>
<p>Use a roster & and BuzzCard scanner to continue</p>
</div>
<div class="main special">
<div style="display:block;margin-top:140px">
<a href="#one" class="goto-next scrolly"></a>
</div>
</div>
</header>
</section>
<!-- Content Section -->
<section class="main special" id="one">
<div>
<br></br>
</div>
<div class="container">
<!-- Form Selection -->
<div class="content" id="scanningForm">
<header class="major">
<h2>Roster & Attendance</h2>
</header>
<br></br>
<form method="post" action="#">
<div class="row gtr-uniform">
<div class="col-12">
<ul class="actions special">
<li><a class="button" id="rosterButton" onclick="pickRoster();" class="button primary scrolly">Select Roster</a></li>
</ul>
<ul class="actions special">
<li><a class="button" id="attendanceButton" onclick="pickAttendanceSheet();" class="button primary">Select Attendance</a></li>
</ul>
<ul class="actions special">
<li>
<div>
<h5>Select Section</h5>
</div>
<select name="section" id="sectionSelect" style="border-radius:5px">
<option value="Default">Select Section</option>
<option value="CULC144@3pm">CULC144@3pm</option>
<option value="[email protected]">[email protected]</option>
<option value="[email protected]">[email protected]</option>
<option value="Klaus1443@6pm">Klaus1443@6pm</option>
<option value="Klaus1456@6pm">Klaus1456@6pm</option>
<option value="Klaus2443@6pm">Klaus2443@6pm</option>
<option value="Klaus2447@6pm">Klaus2447@6pm</option>
</select>
</li>
</ul>
<ul class="actions special">
<li><a class="button primary disabled" id="submitFormsButton" onclick="handleSubmit();">Use Selected Forms</a></li>
</ul>
</div>
</div>
</form>
</div>
<!-- Scanning Running -->
<div class="content" id="scanningRunning" style="display:none">
<header class="major">
<h2>Student Check-In</h2>
</header>
<header>
<h2>Please swipe your BuzzCard</h4>
<p><span id="sheetParagraph"></span><br/><span id="sectionParagraph"></span></p>
<p>Swipe your BuzzCard to mark yourself as attended. If you do not see your name listed below, you have not been checked in.</p>
</header>
<div>
<input type="button" id="stopScanningButton" class="button primary scrolly" onclick="deactivateScanning()" value="Stop Scanning"/>
</div>
<div>
<h5 align="left">Manual Entry</h5>
</div>
<div class="row gtr-uniform">
<div class="col-6 col-12-small" style="width:75%">
<input type="text" id="manualEntry" value="" placeholder="Enter GTID Here" style="border-radius:5px"/>
</div>
<div>
<input type="button" id="manualEntryButton" class="button primary scrolly" onclick="submitManualEntry()" value="Submit"/>
</div>
<div class="col-12" style="display:none" id="admin">
<div>
<h5 align="left">Administrative Control</h5>
</div>
<select id="select" name="member" style="border-radius:5px"></select>
</div>
</div>
<hr></hr>
<h3 id="scanning" style="font-size:25pt;font-weight:normal"></h3>
<div id="swipeOutput" style="margin-top:25px"></div>
<a href="#one" class="goto-next scrolly" style="transform:rotate(180deg)"></a>
</div>
</div>
</section>
<!-- Footer -->
<section id="footer">
<footer>
<ul class="copyright">
<li>© Daniel Becker & Cliff Panos</li>
<li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
<li><a class="icon alt fa-github" style="margin-right:5px"><span class="label">Email</span></a><a href="https://github.com/dbecker1/BuzzcardScanning">GitHub</a></li>
</ul>
</footer>
</section>
<!-- Primary Scripts -->
<script src="assets/js/buzzcards.js"></script>
<script src="assets/js/sha256.js"></script>
<script async defer src="https://apis.google.com/js/api.js"
onload="this.onload=function(){};initBuzzcards()"
onreadystatechange="if (this.readyState === 'complete') this.onload();">
</script>
<!-- Supporting Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.scrollex.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/browser.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>