-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboardRoom.html
274 lines (242 loc) · 10.9 KB
/
dashboardRoom.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
<html>
<head>
<title>ChalkCast</title>
<meta charset="UTF-8">
<meta name="description" content="ChalkCast">
<meta name="keywords" content="ChalkCast">
<meta name="author" content="Blake Williford">
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css">
<link rel="stylesheet" href="./css/style.css" >
<link rel="stylesheet" href="./css/dashboard.css" >
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body class="guitar">
<div class="imageOverlay">
<div class="header">
<div class="profile" onclick="toggleProfileNav()">
<div class="profileImage"></div>
Billy
</div>
<div id="profileMenu">
<ul class="profileNav">
<li class="appSettings">App Settings</li>
<li class="appLogout">Logout</li>
</ul>
</div>
</div>
<div id="sideNavButton" onclick="toggleSideNav()"></div>
<div id="sideNavOverlay" onclick="toggleSideNav()"></div>
<div id="sideNavContainer">
<div class="logo"></div>
<ul class="sideNav">
<a href="./dashboard.html"><li id="backNav"class="backDashboard">Dashboard</li></a>
<li id="joinNav" onclick="dashboardNav('join')">Join</li>
<li id="rosterNav" class="active" onclick="dashboardNav('roster')">Roster</li>
<li id="attendanceNav" onclick="dashboardNav('attendance')">Attendance</li>
<li id="sessionHistoryNav" onclick="dashboardNav('sessionHistory')">Session History</li>
<li id="settingsNav" onclick="dashboardNav('settings')">Settings</li>
</ul>
</div>
<div class="roomDashboard">
<div class="container" id="join" style="display: none">
<h2 class="true-teal align-left" style="float: left;">Join <strong>Music Theory 101</strong></h2>
<div class="clear-40"></div>
<ul class="dashboardNav">
<li class="active">Camera</li><li>In Session</li>
</ul>
<div class="cameraFeed"></div>
<div class="clear-20"></div>
<div class="button" style="float: right">Join Session</div>
</div>
<div class="container" id="roster" style="display: block">
<h2 class="true-teal align-left" style="float: left;">Roster</strong></h2>
<div class="clear-40"></div>
<ul class="dashboardNav">
<li class="active">All</li><li>Groups</li>
</ul>
<div class="clear-20"></div>
<ul id="rosterList">
</ul>
<div class="row">
<div class="col s12 m6 l6">
<h1>Group 1</h1>
<ul id="group1" class="group"></ul>
</div>
<div class="col s12 m6 l6">
<h1>Group 2</h1>
<ul id="group2" class="group"></ul>
</div>
<div class="col s12 m6 l6">
<h1>Group 3</h1>
<ul id="group3" class="group"></ul>
</div>
<div class="col s12 m6 l6">
<h1>Group 4</h1>
<ul id="group4" class="group"></ul>
</div>
</div>
<div class="clear-60"></div>
</div>
<div class="container" id="attendance" style="display: none">
<h2 class="true-teal align-left" style="float: left;">Attendance</h2>
<div id="downloadCSV" class="button downloadCSV" onclick="downloadCSV()">Download CSV</div>
<div id="loader" class="light attendanceLoader" style="display: none">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
<div class="clear-40" ></div>
<img style="width: 100%; border-radius: 24px; box-shadow: 0px 5px 15px rgba(0,0,0,0.1)" src="./images/attendanceChart.png"/>
</div>
<div class="container" id="sessionHistory" style="display: none">
<h2 class="true-teal align-left" style="float: left;">Session History</h2>
<div class="clear-40"></div>
<div class="sessionContainer">
<div class="prevSession"></div>
<div class="date1">DEC 13</br><span class="day">Mon</span></div>
<div class="date2">DEC 14</br><span class="day">Tues</span></div>
<div class="date3">DEC 15</br><span class="day">Wed</span></div>
<div class="sessionPreview sessionPreview1">
<img src="./images/dashboard/engagement.svg"/>
<h5>1 Hour 15 Min</h5>
<h4>Attendance</h4>
<img src="./images/dashboard/attendance75.svg"/>
</div>
<div class="sessionPreview sessionPreview2">
<img src="./images/dashboard/engagement.svg"/>
<h5>1 Hour 5 Min</h5>
<h4>Attendance</h4>
<img src="./images/dashboard/attendance50.svg"/>
</div>
<div class="sessionPreview sessionPreview3">
<img src="./images/dashboard/engagement.svg"/>
<h5>55 Min</h5>
<h4>Attendance</h4>
<img src="./images/dashboard/attendance62.svg"/>
</div>
</div>
</div>
<div class="container" id="roomSettings" style="display: none">
<h2 class="true-teal align-left" style="float: left;">Settings</h2>
<div class="clear-40"></div>
<ul class="dashboardNav">
<li class="active">Room</li><li>Security</li><li>Guests</li>
</ul>
</div>
</div>
<div class="clear-20" ></div>
</div>
</body>
<!--Import jQuery before materialize.js-->
<!--JS Frameworks-->
<script src="./js/paper-full.min.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script>
<script src="./js/sortable.min.js"></script>
<script>
let popSound = new Audio('./sounds/pop.mp3');
function dashboardNav(panel) {
document.getElementById('joinNav').className = "";
document.getElementById('attendanceNav').className = "";
document.getElementById('sessionHistoryNav').className = "";
document.getElementById('settingsNav').className = "";
document.getElementById('rosterNav').className = "";
document.getElementById(panel+'Nav').className = "active";
document.getElementById('join').style.display = "none";
document.getElementById('attendance').style.display = "none";
document.getElementById('sessionHistory').style.display = "none";
document.getElementById('roster').style.display = "none";
document.getElementById('roomSettings').style.display = "none";
if (panel === 'settings') {
document.getElementById('roomSettings').style.display = "block";
}
else {
document.getElementById(panel).style.display = "block";
}
}
function downloadCSV() {
document.getElementById('downloadCSV').style.display = "none";
document.getElementById('loader').style.display = "inline-block";
setTimeout( function() {
document.getElementById('downloadCSV').style.display = "inline-block";
document.getElementById('loader').style.display = "none";
}, 3000);
}
function toggleProfileNav() {
document.getElementById('profileMenu').classList.toggle('active');
}
function toggleSideNav() {
document.getElementById('sideNavContainer').classList.toggle('active');
document.getElementById('sideNavOverlay').classList.toggle('active');
}
let studentList = [
'Angelica Gomez',
'Billy Hamilton',
'Rebecca Kingsley',
'Devin Jackson',
'Ivania Martinez',
'Breanna Harrison',
'Casey Bishop',
'Kelly Blanco',
'Tristan Lee',
'Angie White',
'Daniela Lopez',
'Chad Brown',
]
window.onload = (event) => {
for (let i = 0; i < studentList.length; i++) {
let student = document.createElement('li');
student.style.backgroundImage = "url('./images/people/"+(i+1)+".jpg')";
let studentName = document.createElement('div');
studentName.className = 'nametag';
studentName.innerHTML = studentList[i];
student.appendChild(studentName);
if (i % 4 === 0) {
document.getElementById('group1').appendChild(student);
}
else if (i % 4 === 1) {
document.getElementById('group2').appendChild(student);
}
else if (i % 4 === 2) {
document.getElementById('group3').appendChild(student);
}
else if (i % 4 === 3) {
document.getElementById('group4').appendChild(student);
}
}
// new Sortable(document.getElementById('rosterList'), {
// // options here
// });
new Sortable(document.getElementById('group1'), {
// options here
group: 'group1',
// pull: [document.getElementById('group2')],
// put: [document.getElementById('group2')]
});
new Sortable(document.getElementById('group2'), {
// options here
group: 'group1',
// pull: ['group1','group2'],
// put: ['group1','group2']
});
new Sortable(document.getElementById('group3'), {
// options here
group: 'group1',
// pull: ['group1','group2'],
// put: ['group1','group2']
});
new Sortable(document.getElementById('group4'), {
// options here
group: 'group1',
// pull: ['group1','group2'],
// put: ['group1','group2']
});
}
</script>
</html>