-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
211 lines (210 loc) · 8.13 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link
rel="shortcut icon"
href="//svonk.me/VITE/img/icon/app/icon-512x512.png"
type="image/png"
/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="runsetup" content="true" />
<meta name="waitforload" content="true" />
<meta name="appreloads" content="true" />
<meta name="requireemail" content="true" />
<link rel="stylesheet" href="/VITE/css/theme.css?version=[-version-number-]" />
<link rel="stylesheet" href="/VITE/css/common.css?version=[-version-number-]" />
<link async rel="stylesheet" href="/VITE/css/fonts.css?version=[-version-number-]" />
<link rel="stylesheet" href="/VITE/css/class.css?version=[-version-number-]" />
<link rel="stylesheet" href="/VITE/css/streak.css?version=[-version-number-]" />
<link
rel="stylesheet"
href="/VITE/css/theme-dark.css?version=[-version-number-]"
media="(prefers-color-scheme: unset) and not(print)"
id="theme-dark-stylesheet"
/>
<meta name="theme-color" id="theme-light-color" content="#FFFFFF" />
<meta name="apple-mobile-web-app-status-bar" id="theme-light-color" content="#FFFFFF" />
<meta
name="apple-mobile-web-app-status-bar"
id="theme-dark-color"
media="prefers-color-scheme: unset"
content="#131F22"
/>
<meta
name="theme-color"
id="theme-dark-color"
media="prefers-color-scheme: unset"
content="#131F22"
/>
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="//www.gstatic.com/firebasejs/8.10.0/firebase-app.js"></script>
<script src="//www.gstatic.com/firebasejs/8.10.0/firebase-auth.js"></script>
<script src="//www.gstatic.com/firebasejs/8.10.0/firebase-firestore.js"></script>
<script src="//www.gstatic.com/firebasejs/8.10.0/firebase-messaging.js"></script>
<!-- ios support -->
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-touch-fullscreen" content="yes" />
<meta name="apple-mobile-web-app-title" content="VITE!" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<link rel="apple-touch-icon" href="/VITE/img/icon/app/icon-maskable-72x72.png" />
<link rel="apple-touch-icon" href="/VITE/img/icon/app/icon-maskable-96x96.png" />
<link rel="apple-touch-icon" href="/VITE/img/icon/app/icon-maskable-128x128.png" />
<link rel="apple-touch-icon" href="/VITE/img/icon/app/icon-maskable-144x144.png" />
<link rel="apple-touch-icon" href="/VITE/img/icon/app/icon-maskable-152x152.png" />
<link rel="apple-touch-icon" href="/VITE/img/icon/app/icon-maskable-192x192.png" />
<link rel="apple-touch-icon" href="/VITE/img/icon/app/icon-maskable-384x384.png" />
<link rel="apple-touch-icon" href="/VITE/img/icon/app/icon-maskable-512x512.png" />
<style>
@keyframes expandBar {
0% {
width: 52px;
}
100% {
width: 80%;
}
}
#progress-fill {
animation: 1s ease-out 0s 1 forwards expandBar;
}
</style>
<link
rel="shortcut icon"
href="//svonk.me/VITE/img/icon/app/icon-512x512.png"
type="image/png"
/>
<title>VITE! - Class Management</title>
</head>
<body>
<header>
<button
id="close-button"
class="progress-button"
type="button"
onclick="window.location.href='../app/'"
></button>
<div id="progress-bar" style="display: none">
<div id="progress-fill">
<div id="progress-fill-accent"></div>
</div>
</div>
</header>
<div id="title-text">Manage your classes <span id="class-index">0/0</span></div>
<div id="page-content">
<div id="class-preview-pane" class="box" classload>
<div id="class-title" class="flex-row">
<div id="class-name">Name</div>
<div id="lock-icon"></div>
</div>
<div id="class-description">Description</div>
<div class="fade-down member-list-ui" style="display: none"></div>
<div id="members-list" memberlist style="display: none" classload>
<hr />
</div>
<div class="fade-up member-list-ui" style="display: none"></div>
</div>
<div id="invites-list" class="box" style="display: none">
<div class="section-title">Invited:</div>
</div>
<div id="class-code" class="input-row box codebox-row" classload>
<label for="join-code">Join Code</label>
<hr />
<input type="text" class="codebox" disabled id="join-code" placeholder="—" />
</div>
<div id="actions-row" class="flex-row">
<div
id="delete-button"
style="flex-grow: 1"
class="box-button blue-button disabled delete-document"
classload
>
DELETE
</div>
<div
id="manage-button"
placeholdaction
style="flex-grow: 1; margin-left: 10px"
class="box-button blue-button disabled"
classload
>
MANAGE
</div>
</div>
<div id="student-join-options" forstudent>
<div class="section-title secondary">Join a class:</div>
<div id="student-class-actions" class="flex-row" style="margin-top: 10px">
<div id="student-leave-class" style="display: none">
<div id="student-class-pane" class="box">
<div id="student-class-title" class="flex-row">
<div id="student-class-name">Name</div>
<div id="lock-icon"></div>
</div>
<div id="student-class-description">Description</div>
<div id="student-info-code-row" class="input-row box codebox-row">
<label for="student-class-code">Class Code</label>
<hr />
<input
type="text"
disabled
id="student-class-code"
class="codebox"
placeholder="—"
/>
</div>
<div class="fade-down member-list-ui" style="display: none" forstudent></div>
<div
id="members-list"
class="member-list-ui"
memberlist
style="display: none"
forstudent
>
<hr />
</div>
<div class="fade-up member-list-ui" style="display: none" forstudent></div>
</div>
<div id="student-leave-button" class="box-button red-button disabled">Leave</div>
</div>
<div id="student-join-class" style="display: none">
<div id="student-class-code" class="input-row box">
<label for="student-join-code">Join Code</label>
<hr />
<input type="text" id="student-join-code" placeholder="Enter Code Here" />
</div>
<div id="student-join-button" class="box-button green-button disabled">Join</div>
</div>
</div>
</div>
</div>
<div id="bottom-actions">
<div
id="prev-button"
class="box-button fullborder primary center disabled"
onclick="HTMLFromID(cycleClasses(-1))"
>
<div id="prev-icon" class="color-mask"></div>
</div>
<div
id="add-button"
style="margin-left: 10px; margin-right: 10px; flex-grow: 1"
class="box-button blue-button"
onclick="createClass()"
>
ADD
</div>
<div
id="next-button"
class="box-button fullborder primary center disabled"
onclick="HTMLFromID(cycleClasses(1))"
>
<div id="next-icon" class="color-mask"></div>
</div>
</div>
</body>
<script src="/VITE/js/util.js?version=[-version-number-]"></script>
<script src="/VITE/js/firestore-page-auth.js?version=[-version-number-]"></script>
<script src="/VITE/js/class.js?version=[-version-number-]"></script>
<script async src="/VITE/js/streak.js?version=[-version-number-]"></script>
</html>