-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquestion.html
executable file
·314 lines (271 loc) · 14.1 KB
/
question.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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<link rel="icon" type="image/png" href="assets/img/favicon.png">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<title>Programming Teacher | Dashboard</title>
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport'/>
<!-- Fonts and icons -->
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"/>
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css"/>
<!-- CSS Files -->
<link href="assets/css/bootstrap.min.css" rel="stylesheet"/>
<link href="assets/css/material-kit.css" rel="stylesheet"/>
<link href="assets/css/selectize.default.css" rel="stylesheet"/>
</head>
<body class="signup-page">
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse"
data-target="#bs-example-navbar-collapse-1">
<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="#">Programming Teacher v2.0</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li style="margin-right:20px;"><img id="image" style="width:50px; height:50px;" /></li>
<li id="dname" style="margin-right:30px; margin-top:15px;text-transform: uppercase; font-weight: bold;"></li>
<li class="active"><a onclick="googleSignout()" style="cursor: hand;">Logout</a></li>
</ul>
</div>
</div>
</nav>
<div class="container" style="background-color:#FFFFFF; margin:0 auto;">
<div style="margin-top:20px;">
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#normal" aria-controls="home" role="tab" data-toggle="tab">Normal Questions</a></li>
<li role="presentation"><a href="#multi" aria-controls="profile" role="tab" data-toggle="tab">Multiplayer Questions</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="normal">
<div class="row">
<img src="assets/img/logo.png" style="width:40px; margin-left:20px; margin-top:17px; float:left; margin-right:10px;">
<h3 style="margin-left:30px !important;">Enter a new question</h3>
<hr>
</div>
<div class="row">
<div class="col-xs-10 col-xs-offset-1">
<form id="prospects_form">
<div class="col-xs-12">
<div class="input-group">
<span class="input-group-addon">
<b>Question Heading</b>
</span>
<input type="text" class="form-control" id="title" placeholder="Enter here">
</div>
</div>
<div class="col-xs-12">
<div class="input-group">
<span class="input-group-addon">
<b>Question Description</b>
</span>
<input type="text" class="form-control" id="des" placeholder="Enter here">
</div>
</div>
<div class="col-xs-12 col-sm-4">
<div class="input-group">
<span class="input-group-addon">
<b>Question Number</b>
</span>
<input type="text" class="form-control" id="qno" placeholder="Enter here">
</div>
</div>
<div class="col-xs-12 col-sm-4">
<div class="input-group">
<span class="input-group-addon">
<b>Success Question</b>
</span>
<input type="text" class="form-control" id="sno" placeholder="Enter here">
</div>
</div>
<div class="col-xs-12 col-sm-4">
<div class="input-group">
<span class="input-group-addon">
<b>Fail Question</b>
</span>
<input type="text" class="form-control" id="fno" placeholder="Enter here">
</div>
</div>
<div class="col-xs-12" style="margin-top:30px;">
<b><p style="margin-left:17px; color:#555555; margin-bottom:-35px;">Question Main Tags</p></b>
<div>
<input type="text" id="input-tags" class="form-control " placeholder="Enter here with comma seperate" style="margin-top:-30px !important;; ">
</div>
</div>
<div class="col-xs-12" style="margin-top:30px;">
<b><p style="margin-left:17px; color:#555555; margin-bottom:-35px;">Question Sub Tags</p></b>
<div>
<input type="text" id="input-tags2" class="form-control" placeholder="Enter here with comma seperate" style="margin-top:-30px !important;; ">
</div>
</div>
<div class="col-xs-12" style="margin-top:30px;">
<div>
<b><p style="margin-left:17px; color:#555555; margin-bottom:-35px;">Correct Answer Sequence</p></b>
<input type="text" id="input-tags3" class="form-control js-target" placeholder="Enter here with comma seperate" style="margin-top:-30px !important;;">
</div>
</div>
<div class="col-xs-12" style="width:100%;">
<button class="btn btn-primary" style="width:100%; margin-top:50px;" onclick="submitQuestion()">Submit Question</button>
</div>
</form>
</div>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="multi">
<div class="row">
<img src="assets/img/logo.png" style="width:40px; margin-left:20px; margin-top:17px; float:left; margin-right:10px;">
<h3 style="margin-left:30px !important;">Enter a multiplayer question</h3>
<hr>
</div>
<div class="row">
<div class="col-xs-10 col-xs-offset-1">
<form id="prospects_form_m">
<div class="col-xs-12">
<div class="input-group">
<span class="input-group-addon">
<b>Question</b>
</span>
<input type="text" class="form-control" id="question" placeholder="Enter here">
</div>
</div>
<div class="col-xs-12">
<div class="input-group">
<span class="input-group-addon">
<b>Question Title</b>
</span>
<input type="text" class="form-control" id="qtitle" placeholder="Enter here">
</div>
</div>
<div class="col-xs-12 col-sm-6">
<div class="input-group">
<span class="input-group-addon">
<b>Answer 1</b>
</span>
<input type="text" class="form-control" id="a1" placeholder="Enter here">
</div>
</div>
<div class="col-xs-12 col-sm-6">
<div class="input-group">
<span class="input-group-addon">
<b>Answer 2</b>
</span>
<input type="text" class="form-control" id="a2" placeholder="Enter here">
</div>
</div>
<div class="col-xs-12 col-sm-6">
<div class="input-group">
<span class="input-group-addon">
<b>Answer 3</b>
</span>
<input type="text" class="form-control" id="a3" placeholder="Enter here">
</div>
</div>
<div class="col-xs-12 col-sm-6">
<div class="input-group">
<span class="input-group-addon">
<b>Answer 4</b>
</span>
<input type="text" class="form-control" id="a4" placeholder="Enter here">
</div>
</div>
<div class="col-xs-12">
<div class="input-group">
<span class="input-group-addon">
<b>Correct Answer</b>
</span>
<input type="text" class="form-control" id="correctNum" placeholder="Enter Answer Number here">
</div>
</div>
<div class="col-xs-12" style="width:100%;">
<button class="btn btn-primary" style="width:100%; margin-top:50px;" onclick="multi_submitQuestion()">Submit Question</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
<!-- Core JS Files -->
<script src="assets/js/jquery.min.js" type="text/javascript"></script>
<script src="assets/js/bootstrap.min.js" type="text/javascript"></script>
<script src="assets/js/material.min.js"></script>
<script src="assets/js/tags.js" type="text/javascript"></script>
<script src="https://www.gstatic.com/firebasejs/3.9.0/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyBJ42woKmvN78V7vTSwTYha3Hg_qUJ8lWQ",
authDomain: "programming-teacher.firebaseapp.com",
databaseURL: "https://programming-teacher.firebaseio.com",
projectId: "programming-teacher",
storageBucket: "programming-teacher.appspot.com",
messagingSenderId: "487063878453"
};
firebase.initializeApp(config);
$('#myTabs a').click(function (e) {
e.preventDefault()
$(this).tab('show')
})
</script>
<!-- Plugin for the Sliders, full documentation here: http://refreshless.com/nouislider/ -->
<script src="assets/js/nouislider.min.js" type="text/javascript"></script>
<!-- Plugin for the Datepicker, full documentation here: http://www.eyecon.ro/bootstrap-datepicker/ -->
<script src="assets/js/bootstrap-datepicker.js" type="text/javascript"></script>
<!-- Control Center for Material Kit: activating the ripples, parallax effects, scripts from the example pages etc -->
<script src="assets/js/material-kit.js" type="text/javascript"></script>
<script src="assets/js/selectize_dupliates.min.js" type="text/javascript"></script>
<script src="assets/js/sortable.js" type="text/javascript"></script>
<script src="assets/js/ui.js" type="text/javascript"></script>
<script src="assets/js/logout.js" type="text/javascript"></script>
<script src="assets/js/questionSubmit.js" type="text/javascript"></script>
<script src="assets/js/multi_questionSubmit.js" type="text/javascript"></script>
<script>
$('#input-tags').selectize({
plugins: ['drag_drop'],
delimiter: '`',
createOnBlur: true,
persist: false,
create: function(input) {
return {
value: input,
text: input
}
}
});
$('#input-tags2').selectize({
plugins: ['drag_drop'],
delimiter: '`',
persist: false,
createOnBlur: true,
create: function(input) {
return {
value: input,
text: input
}
}
});
$('#input-tags3').selectize({
plugins: ['drag_drop'],
delimiter: '`',
persist: false,
createOnBlur: true,
duplicates: true,
create: function(input) {
return {
value: input,
text: input
}
}
});
</script>
</html>