-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
196 lines (177 loc) · 6.49 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
<!DOCTYPE html>
<html>
<head>
<title>MEAM Swipe Access</title>
<link rel="stylesheet" href="./public/external/semantic.css" />
<link rel="stylesheet" href="./public/external/icon.css" />
<script src="./public/external/jquery-3.1.0.js"></script>
<script src="./public/external/semantic.js"></script>
<script src="./public/external/moment.js"></script>
<script src="./public/external/pouchdb-6.0.6.js"></script>
<style>
a {
cursor: pointer;
}
::selection {
background:rgba(255, 255, 125, 0.99);
color:#032764;
}
</style>
</head>
<body>
<!-- Main GUI -->
<div class="ui grid" style="width: 520px; height:650px;">
<div class="column">
<div class="ui container" style="margin-top:2em;">
<h1 class="ui header">Meam Swipe Access</h1>
<div class="ui fluid action input">
<input id="input" placeholder="Swipe here..." type="text">
<div id="reset" class="ui button">Reset</div>
</div>
<h4 class="ui horizontal divider header">
<i class="users icon"></i>
Users
</h4>
<div id="userList" class="ui relaxed divided list">
</div>
<h4 class="ui horizontal divider header">
<i class="options icon"></i>
Controls
</h4>
<div style="margin: 0 auto; width: 220px;">
<button id="quit" class="ui red button">Close App</button>
<button id="shopjob" class="ui purple button">Shop Job</button>
</div>
<br />
<div style="margin: 0 auto; width: 360px;">
<button id="delete" class="ui red button">Delete User</button>
<button id="edit" class="ui violet button">Modify User</button>
<button id="add" class="ui blue button">Add User</button>
</div>
<br />
<div style="margin: 0 auto; width: 350px;">
<button id="all" class="ui teal button">All Logs</button>
<button id="today" class="ui green button">Today's Logs</button>
<button id="export" class="ui yellow button">Export Logs</button>
</div>
</div>
<div class="ui container" style="position:absolute; bottom:0;">
<small>Sean Lynch | <a class="source_button">Source</a> | <a class="help_button">Readme</a> </small>
</div>
</div>
</div>
<!-- Add Modal -->
<div class="ui modal add">
<!-- <i class="close icon"></i> -->
<div class="header">
Add User
</div>
<div class="content">
<form class="ui form">
<div class="field">
<label>First Name</label>
<input name="first-name" placeholder="First Name" type="text">
</div>
<div class="field">
<label>Last Name</label>
<input name="last-name" placeholder="Last Name" type="text">
</div>
<div class="field">
<label>Penn ID Number</label>
<input name="id-num" placeholder="ID Number" type="text">
</div>
<div class="field">
<label>Access Level</label>
<select id="level" class="ui fluid dropdown">
<option value="">Level</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
<option value="4">Four</option>
<option value="5">Five</option>
</select>
</div>
<div class="field">
<label>Provisional</label>
<input id="provisional" type="checkbox" />
</div>
<button id="addCancel" class="ui button">Cancel</button>
<button id="addSave" class="ui green button" type="submit">Submit</button>
</form>
</div>
</div>
<!-- Edit Modal -->
<div class="ui modal edit">
<!-- <i class="close icon"></i> -->
<div class="header">
Edit User
</div>
<div class="content">
<form class="ui form">
<div class="field">
<label>First Name</label>
<input name="first-name" placeholder="First Name" type="text">
</div>
<div class="field">
<label>Last Name</label>
<input name="last-name" placeholder="Last Name" type="text">
</div>
<div class="required field">
<label>Penn ID Number</label>
<input name="id-num" placeholder="ID Number" type="text">
</div>
<div class="field">
<label>Access Level</label>
<select id="level" class="ui fluid dropdown">
<option value="">Level</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
<option value="4">Four</option>
<option value="5">Five</option>
</select>
</div>
<div class="field">
<label>Provisional</label>
<input id="provisional" type="checkbox" />
</div>
<button id="editCancel" class="ui button">Cancel</button>
<button id="editSave" class="ui green button" type="submit">Save</button>
</form>
</div>
</div>
<!-- (Both) Logs Modal -->
<div class="ui long modal logs">
<!-- <i class="close icon"></i> -->
<div class="header">
<!-- Logs <div class="sub header">(num | level | id lastname | logout | duration)</div> -->
Logs <span style='font-size: 0.70em;'>[num | level | id | lastname | logout | duration]</span>
</div>
<div class="content">
<div id="logsList" class="ui divided list">
</div>
<button id="logsClose" class="ui button">Close</button>
</div>
</div>
<!-- Delete Modal -->
<div class="ui modal delete">
<!-- <i class="close icon"></i> -->
<div class="header">
Delete
</div>
<div class="content">
<form class="ui form">
<div class="field">
<label>ID Number</label>
<input name="id-num" placeholder="PennID Number..." type="text">
</div>
<button id="deleteClose" class="ui button">Close</button>
<button id="deleteButton" class="ui red button">Delete</button>
</form>
</div>
</div>
<!-- Functionality -->
<script src="./public/main.js"></script>
<script src="./public/button_handlers.js"></script>
</body>
</html>