-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlecturerRun.html
More file actions
316 lines (286 loc) · 17 KB
/
lecturerRun.html
File metadata and controls
316 lines (286 loc) · 17 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
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>SmartCRS</title>
<link href="js/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="js/lib/bootstrap-toggle/bootstrap-toggle.css" rel="stylesheet" type="text/css">
<link href="js/lib/webix/codebase/skins/webix_air_smartCRS.css" rel="stylesheet" type="text/css">
<link href="js/lib/jquery-comments-1.1.0/css/jquery-comments.css" rel="stylesheet" type="text/css">
<link href="css/external/nouislider.css" type="text/css" rel="stylesheet">
<link href="css/smartCRS.css" type="text/css" rel="stylesheet">
<link href="js/lib/bootstrap-tour/bootstrap-tour.css" type="text/css" rel="stylesheet">
<link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32"/>
<link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16"/>
</head>
<body>
<!-- Used to identify lecturerRun side in start.js -->
<div id="lecturerRunID"></div>
<nav class="navbar navbar-default navBarBg">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
data-target="#lecturerNavBar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">
<div id="connectedPeers"><span id="numPeers" class="webix_loading_overlay_highlighted_text">0</span>
Students connected
</div>
</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="lecturerNavBar">
<button id="connectButton" class="connectionButtons navBarButtons navbar-btn connectButtonColor">Start Lecture</button>
<button id="disconnectButton" class="connectionButtons navBarButtons navbar-btn displayNone">Disconnect</button>
<button class="btn btn-default navBarButtons navbar-btn" id="loadButton"><span
class="glyphicon glyphicon-floppy-open"
style="color: #008000"></span> Load Lecture</button>
<button class="btn btn-default navBarButtons navbar-btn" id="saveButtonLecturerRun"><span
class="glyphicon glyphicon-floppy-save"
style="color: #0000ff"></span> Save Lecture</button>
<span class="dropdown navBarButtons">
<span id="notificationSettingsDropdown" class="btn btn-default dropdown-toggle navBarButtons"
data-toggle="dropdown"
role="button" aria-haspopup="true" aria-expanded="false">Notification Settings<span
class="caret"></span>
</span>
<ul class="dropdown-menu">
<li><a><strong>Threshold For Triggering Notification </strong></a>
</li>
<li>
<!-- http://stackoverflow.com/questions/27364438/how-to-prevent-form-input-to-reload-a-page-when-receiving-enter-key -->
<form class="navbar-form navbar-left form-inline" role="form" onSubmit="return false;">
<div class="form-group">
<label for="fieldThreshold"></label>
<input type="number" value="0" min="0" max="100" id="fieldThreshold"
class="form-control thresholds">
<div class="form-group" role="group">
<label for="selAbsPercent"></label>
<select id="selAbsPercent" class="form-control thresholds">
<option value="Percent">Percent</option>
<option value="Absolute">Absolute</option>
</select></div>
</div>
<span class="glyphicon glyphicon-question-sign" style="color: #008000"
data-toggle="popover" title="Threshold"
data-content="How many (percent) of your students must upvote a comment before you receive a notification?"></span>
</form>
</li>
<li>
<a><strong>On Treshold Reached </strong></a>
</li>
<li>
<form class="navbar-form navbar-left form-inline" role="form">
<div class="form-group">
<div class="form-group" role="group">
<label for="buttonNotification"></label>
<select id="buttonNotification" class="form-control">
<option value="Play Sound">Play Sound</option>
<option value="Show Popup">Show Popup</option>
<option value="Play Sound & Show Popup">Play Sound & Show Popup</option>
<option value="Don't notify me">Don't notify me</option>
</select>
<span class="glyphicon glyphicon-question-sign" style="color: #008000"
data-toggle="popover" title="Way Of Notification"
data-content="How do you want to be notified of new comments from students?"></span>
</div>
</div>
</form>
</li>
</ul>
</span>
<span class="pull-right startTour"><button class="btn btn-default navBarButtons navbar-btn">Help
<span class="glyphicon glyphicon-question-sign" style="color: #008000"></span></button></span>
</div><!-- /.navbar-col
se -->
</div><!-- /.container-fluid -->
</nav>
<div class="container-fluid" id="lecturerMainContainer">
<div class="row">
<div class="col-md-12">
<div id="qTablePanel" class="panel panel-primary">
<div class="panel-heading">Questions</div>
<div class="panel-body noPadding">
<table id="questionsControlTable" class="table">
<thead>
<tr><th id="idHeader">ID</th><th id="questionHeader">Question</th><th id="typeHeader">Type</th><th id="shareHeader">Share</th><th id="statsHeader">Stats</th><th id="votesPerStudHeader">Votes/<br>Student</th><th id="deleteQuestionHeader"></th></tr>
</thead>
<tbody id="qTableBody">
<tr id='emptyTableTR'> <td id='emptyTableTD' colspan='6'> Click on 'Add new question' to create a new question </td> </tr>
</tbody>
</table>
</div>
<div class="panel-footer noPadding">
<div class="btn btn-default btn-lg col-md-12" id="buttonAddNewQuestion" data-toggle="modal" data-target="#modalCreateQuestion">
<span class="glyphicon glyphicon-plus-sign" style="color:green"></span> Add new question
</div>
</div>
</div>
<input id="filesLoadLecture" name="files[]" type="file" class="btn btn-link hideLoadButtons">
</div>
</div>
<div class="row">
<div class="col-md-12 displayNone" id="infoNotConnected">
<div class="alert alert-warning text-center" role="alert">
<strong>Note:</strong> Your message has been stored and will be sent to your students once you click on
'Start Lecture'.
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="panel panel-primary">
<div class="panel-heading">Comments</div>
<div class="panel-body">
<div id="comments-container"></div>
</div>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="modalCreateQuestion" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true" data-backdrop="false">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close buttonCloseModal" aria-hidden="true">
×
</button>
<h4 class="modal-title modeCreateQuestion" id="myModalLabel">Add new questions</h4>
<h4 class="modal-title modeEditQuestion" id="myModalLabel2">Edit question</h4>
</div>
<div class="modal-body">
<fieldset class="modeCreateQuestion">
<legend>
<label for="qMc"></label>
<button type="Button" name="QuestionType" id="qMc" class="btn btn-default btn-lg radio_qType" data-question-constructor="McQuestion">Multiple Choice</button>
<label for="qScale"></label>
<button type="Button" name="QuestionType" id="qScale" class="btn btn-default btn-lg radio_qType" data-question-constructor="RatingQuestion">Rating Question</button>
<label for="qOpen"></label>
<button type="Button" name="QuestionType" id="qOpen" class="btn btn-default btn-lg radio_qType" data-question-constructor="OpenQuestion">Open Question</button>
</legend>
</fieldset>
<!-- Shared Question Textarea -->
<div id="sharedQuestionTextareaTemplate" class="form-group displayNone">
<label for="textareaQuestion">Question</label>
<textarea id="textareaQuestion" class="form-control" required
placeholder="Type in your question."></textarea>
<span id="validationBlockQuestion" class="help-block displayNone"></span>
</div>
<!-- Shared Question Textarea -->
<form role="form" id="qOpenForm" name="questionForm" data-question-constructor="OpenQuestion"
class="displayNone">
<div class="sharedQuestionTextarea"></div>
<fieldset>
<legend>
Solution (optional)
</legend>
<p>
<textarea rows="4" cols="50" id="textareaOpenSolution" class="form-control"
placeholder="Type in a solution (optional). This allows to display the correct answers differently in a stats graph."></textarea>
</p>
</fieldset>
</form>
<form role="form" id="qScaleForm" name="questionForm" data-question-constructor="RatingQuestion"
class="displayNone">
<div class="sharedQuestionTextarea"></div>
<div id="formGroupScaleSolution" class="form-group">
<label for="inputScaleSolution">Solution (Optional)</label>
<input type="tel" id="inputScaleSolution" step="0.1" class="form-control"
placeholder="The solution can be highlighted in the stats graph during the lecture.">
<div id="helpBlockInputScaleSolution" class="help-block displayNone"></div>
</div>
<div id="formGroupScales" class="form-group">
<div class="row">
<div class="col-md-4">
<label for="inputSliderStart">Start:</label>
<input type="tel" id="inputSliderStart" class="myKeyUp form-control"
value="1">
</div>
<div class="col-md-4">
<label for="inputSliderEnd">End:</label>
<input type="tel" id="inputSliderEnd" class="myKeyUp form-control"
value="10">
</div>
<div class="col-md-4">
<label for="inputSliderStep">Step size:</label>
<input type="tel" id="inputSliderStep"
class="myKeyUp form-control" value="1" min="0.1">
</div>
<span id="helpBlockScales" class="help-block col-md-12 displayNone"></span>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Preview of the slider</h3>
</div>
<div class="panel-body">
<div id="sliderDiv">
<!-- This is the placeholder for the slider-->
<div id="slider"></div>
<div id="sliderStatusLabel" tabindex="0" class="h3" align="center"></div>
</div>
</div>
</div>
</form>
<!-- qScaleForm -->
<form role="form" id="qMcInputsForm" name="questionForm" data-question-constructor="McQuestion"
class="displayNone">
<div class="sharedQuestionTextarea"></div>
<div class="form-group">
<label>Answer Options</label>
<div id="mcOptionsFormGroup" class="form-group">
<span id="helpBlockMcOptions" class="help-block displayNone"></span>
</div>
</div>
<!-- The mcOption field template -->
<div class="form-group hide" id="optionTemplate">
<div class="inactive-mcOption-template">
<div class="input-group">
<div class="input-group-addon" role="group">
<button type="button" class="btn btn-default removeMcOptionButton disabled"><span
class="glyphicon glyphicon-remove"></span></button>
</div>
<textarea class="form-control" name="option[]"
placeholder="Click here to add an option"></textarea>
<div class="input-group-btn mcTrueFalseToggle-template">
<button type="button" class="btn btn-default btn-sm" name="trueOption">true</button>
<button type="button" class="btn btn-default btn-sm btn-primary active">false
</button>
<div class="btn-group" role="group">
</div>
</div>
</div>
</div>
</div>
</form>
</div>
<div class="modal-footer" style="text-align: left">
<button type="button" id="buttonModalClose" class="btn btn-default modeCreateQuestion buttonCloseModal">
Close
</button>
<button type="button" id="closeModal" class="btn btn-default modeEditQuestion buttonCloseModal">
Discard changes
</button>
<button type="submit" id="buttonAddQuestionToMainTable"
class="btn btn-default modeCreateQuestion">
<span class="glyphicon glyphicon-plus-sign" style="color: green"></span> Save Question
</button>
<button type="button" id="buttonModalApplyChanges" class="btn btn-default modeEditQuestion">
Apply changes
</button>
<div id="questionAddedAlert" class="alert alert-success text-center displayNone" role="alert">
<span id="questionAddedAlertArrow" class="glyphicon glyphicon-arrow-left pull-left"></span> Your question has been successfully added to the main question table</div>
</div>
</div>
</div>
</div>
<script data-main="js/main.js" src="js/lib/require.js"></script>
</body>
</html>