-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
511 lines (467 loc) · 23.4 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
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
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Automotive Electricity & Electronics</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link rel="stylesheet" href="assets/js/vendor/plug-ins/video-js/video-js.css" type="text/css">
<link rel="stylesheet" href="assets/js/vendor/plug-ins/video-js/lib/videojs-captions-toggle.css" type="text/css">
<link rel="stylesheet" href="assets/css/vendor/jquery.mCustomScrollbar.css" type="text/css">
<link rel="stylesheet" href="assets/css/vendor/jquery.mCustomScrollbar.css" type="text/css">
<link rel="stylesheet" href="assets/css/vendor/reset.css" type="text/css">
<link rel="stylesheet" href="assets/css/vendor/fonts.css" type="text/css">
<link rel="stylesheet" href="assets/css/vendor/jquery-ui.css" type="text/css">
<link rel="stylesheet" href="assets/css/app.css" type="text/css">
<link rel="stylesheet" href="assets/css/home.css" type="text/css">
<link rel="stylesheet" href="assets/css/video.css" type="text/css">
<link rel="stylesheet" href="assets/css/sim.css" type="text/css">
<link rel="stylesheet" href="assessment/assessment.css" type="text/css">
<link rel="stylesheet" href="reports/report.css" type="text/css">
<script src="assets/js/vendor/head.min.js"></script>
</head>
<body>
<div id="mainWrapper">
<!-- START: Home Page ############################################################################################################################## -->
<div id="homePage">
<div id="homeLogo"></div>
<div id="homeContainer">
<div id="mainHeading"></div>
<div id="subHeading"></div>
<div id="homeButtons"></div>
</div>
</div>
<!-- END: Home Page -->
<!-- START: Page Header ############################################################################################################################ -->
<div id="pageHeader" style="display:none">
<!-- TODO: Replace with dynamic code populated from json data -->
<div class="series"></div>
<div class="module-activity"></div>
<div id="headerLogo"></div>
</div>
<!-- END: Page Header -->
<!-- START: Video Page ############################################################################################################################# -->
<div id="videoPage" style="display:none;">
<div id="videoContainer">
<div id="videoplayer">
<iframe id="videoFrame" src="" scrolling="no" frameBorder="0" allowfullscreen webkitallowfullscreen mozallowfullscreen oallowfullscreen msallowfullscreen>Browser not compatible.</iframe>
</div>
<div id="videoButtons"></div>
</div>
</div>
<!-- END: Video Page -->
<div id="partsDepartment">
<div id="tmpBCMHotspot"></div>
</div>
<!-- START: Simulation Page ######################################################################################################################## -->
<div id="simulationPage" style="display:none">
<!-- Audio Players -->
<audio id="audPlayer"></audio>
<audio id="audPlayer1"></audio>
<audio id="fbAudioPlayer"></audio>
<!-- Icon Bar -->
<div id="iconBar">
<div id="icons">
<!-- Menu List -->
<ul id="menu">
<li id="tasks" class="txt">
<span class="noarrow"></span><span class="litext">Tasks</span>
</li>
<li id="videos" class="txt">
<span class="rarrow"></span><span class="litext1">Videos</span>
<ul class="submenuVideos"></ul>
</li>
<li id="activities" class="txt">
<span class="rarrow"></span><span class="litext1">Activities</span>
<ul class="submenuActivites"></ul>
</li>
<li id="version" class="txt">
<span class="noarrow"></span><span id="versionText" class="litext"></span>
</li>
</ul>
<!-- Service Information Menu List -->
<ul id="siMenu"></ul>
</div>
</div>
<!-- Acticity Interactive Content -->
<div id="simulationContainer">
<!-- Load activity HTML file here -->
<div id="wholeContainer">
<div id="contentContainer">
<div id="zoomWrapper">
<div id="panWrapper">
<div id="contentInnerContainer"></div>
</div>
</div>
</div>
</div>
<div id="dragContainment"></div>
</div>
<!-- Skip Intro Screen -->
<div id ="skipIntroCover" style="display:none">
<div id ="skipBtn" title="Skip Intro"></div>
</div>
<!-- Safety Screen -->
<div id ="safetyScreenCover" style="display:none">
<div id="safetyScreen">
When working in the shop, always follow the<br>
safety guidelines provided in service information,<br>
tool operation manuals, and other technical<br>
literature.<br><br>
To protect yourself from injury, wear personal<br>
protective equipment (PPE), dress appropriately,<br>
work professionally, and correctly handle tools<br>
and equipment.<br><br>
<span style="color:#D11F27">Click on the continue button to acknowledge<br>
that you understand the importance of safety<br>
in the automotive shop.</span><br><br>
<div id="safeStart" title="Continue" style="cursor: pointer;"></div>
</div>
</div>
<!-- Activity End Screen -->
<div id="activityEndScr" style="display: none;">
<div id="finalCover"></div>
<div id="btncon" title="Continue"></div>
<div id="btnReviewQuestions" title="Go to Review Questions"></div>
</div>
<!-- Activity Already Completed Screen
<div id="activityCompleted" style="display: none;">
<div id="btncon" title="Continue"></div>
</div>
-->
<!-- Activity Already Completed Screen -->
<div id="activityDoneScr" style="display: none;">
<div id="messageCover"><span>You have completed this activity and your score has been recorded.</span></div>
<div id="contBtn" class="okBtn" title="OK"></div>
</div>
<!-- Simulation Page Footer -->
<div id="footer" style="display:none;">
<div id="ccContent">
<div id="cctxt"></div>
</div>
<div id="scoreArea">
<div>SCORE : <span id="scoreval">0</span></div>
</div>
</div>
<!-- Popup Video Player -->
<div id="popupVideoPlayer">
<img id="videoClose" src="assets/images/icons/close_task.png" title="Close"/>
<div id="videoPlayer">
<iframe id="videoFrame" src="" scrolling="no" frameBorder="0" allowfullscreen webkitallowfullscreen mozallowfullscreen oallowfullscreen msallowfullscreen>Browser not compatible.</iframe>
</div>
</div>
<!-- Floating & Draggable Window -->
<div id="floatWindow">
<div id="floatHeader">
<img id="closeFloatWindow" src="assets/images/icons/close_task.png" title="Close"/>
<p class="activityTitle"></p>
</div>
<div id="floatContent" class="mCustomScrollbar">
<span class="taskListDescription"></span>
<br><br>
<ol class="taskList">
<!-- These elements are dynamically generated, code is located in global.js (Get Activity Taskst) -->
</ol>
</div>
</div>
<!-- Activity Assessment Floating, Draggable & Minimizeable Window -->
<div id="activityAssessmentWindow" class="assessment">
<div id="activityAssessmentHeader">
<span class="minMaxIcon maximized" title="Minimize"></span>
</div>
<div id="activityAssessmentContent" class="assessmentContent"></div>
<div id="activityAssessmentFooter">
<div id="submitBtn" class="submit"></div>
</div>
</div>
<!-- Service Information Window -->
<div id="serviceInformationWindow" class="ui-widget-content">
<div id="serviceInformationHeader" class="ui-widget-header">
<img id="serviceInformationClose" src="assets/images/icons/close_popup.png" title="Close"/>
<img id="serviceInformationMinMax" class="max" src="assets/images/icons/up_icon.png" title="Minimize"/>
<img id="serviceInformationDownload" class="max" src="assets/images/icons/download_popup.png" title="Download"/>
<img id="serviceInformationZoomOut" class="max" src="assets/images/icons/zoomout_inactive.png" title="Zoom Out"/>
<img id="serviceInformationZoomIn" class="max" src="assets/images/icons/zoomin.png" title="Zoom In"/>
</div>
<div id="serviceInformationContent" class="">
<div id="serviceInformationInnerContent" class=""></div>
</div>
</div>
<!-- Continue Button -->
<div id="btnContinue" title="Continue"></div>
<!-- Activity Message Overlay -->
<div id="activityMessageOverlay">
<div id="activityMessage"></div>
<div class="btn-continue"></div>
</div>
<!-- Menu LightBox -->
<div id="menuLightbox"></div>
<!-- Alert Box -->
<div id="alertBox">
<div id="alertContent"></div>
<div id="buttonBar">
<div id="btnYes"><img src="assets/images/buttons/horizontal/yes.png" class="alertbox-button"></div>
<div id="btnNo"><img src="assets/images/buttons/horizontal/no.png" class="alertbox-button"></div>
</div>
</div>
<!-- Tool Tray -->
<div id="toolTray" class="tray-closed">
<div id="toolTrayHeader">
<div id="scrollUp"></div>
<div id="closeTray"></div>
</div>
<div id="toolTrayContent">
<div id="contentInner">
<div class="tools"></div>
<div class="tools"></div>
<div class="tools"></div>
<div class="tools"></div>
<div class="tools"></div>
<div class="tools"></div>
<div class="tools"></div>
</div>
</div>
<div id="toolTrayFooter">
<div id="scrollDown"></div>
</div>
</div>
</div>
<!-- END: Simulation Page -->
<!-- START: Review Assessment Page -->
<div id="reviewAssessment" class="assessment">
<div class="container">
<div class="title">Review Questions</div>
<div id="reviewAssessmentContent" class="assessmentContent"></div>
<div class="btn-continue" title="Continue" style="pointer-events: none; display:none;"></div>
<div id="submit" class="revQsnSubmitBtn submit" title="Submit" style="pointer-events: none;"></div>
<div id="viewReport" class="continueBtnToCongrats nextFrame" title="View Report"></div>
</div>
</div>
<!-- END: Review Assessment Page -->
<div id="gameContainer">
<div id="mainContainer">
<div id="congratulationsView"></div>
<div id="processReport">
<div id="table" class="fullHeight"></div>
<div id="processReportButtons">
<div id="printButton" title="Download"></div>
<div id="closeButton" title="Close"></div>
</div>
</div>
</div>
</div>
</div>
<div id="pdfViewer" style="display:none">
<div class="container">
<div class="header">
<!-- TODO: Replace with dynamic code populated from json data -->
<div class="series"></div>
<div class="module-activity"></div>
<div class="headerLogo"></div>
<div class="userName">Name:</div>
</div>
<div id="pdfData"></div>
</div>
</div>
<!-- GLOBAL UI SHELL SCRIPTS ########################################################################################################################### -->
<script>
// HeadJS is a JavaScript Module Laoder
// Visit http://headjs.com for complete details
head.load(
"assets/js/vendor/jquery/jquery-1.12.2.min.js",
"assets/js/vendor/jquery/jquery-ui.min.js",
"assets/js/vendor/jquery/jquery.ui.touch-punch.min.js",
"assets/js/vendor/jquery/jquery.tmpl.min.js",
"assets/js/vendor/jquery/jquery.mCustomScrollbar.concat.min.js",
"assets/js/vendor/plug-ins/video-js/video.js",
"assets/js/vendor/plug-ins/video-js/lib/videojs-captions-toggle.js",
"assets/js/vendor/dragscroll.js",
"assets/js/module-data.js",
"assets/js/config.js",
"assets/js/global.js",
//"assets/js/service-information.js",
"assets/js/audio.js",
"assessment/assessment.js",
"reports/report.js",
"assets/js/video-page.js",
"assets/js/home-page.js",
"assets/js/app.js",
"assets/js/vendor/download.js"
);
</script>
<script id="reviewAssessmentTmpl" type="text/x-jquery-tmpl">
{{each(i, q) assessment }}
{{if i % 2 == 0 }}
<div class="row">
{{/if}}
<div id="question_${id}" class="question">
<div class="heading">
<div class="questionNo">${id}.</div>
<div class="questionTitle">{{html question}}</div>
</div>
<div class="answers">
${question.id}
{{each(i, answer) answers }}
<div id="answer_${id}" class="option">
{{if type == 'radio' }}
<input id="question_${q.id}_radioBtn_${id}" type="radio" name="question_${q.id}" value="${id}">
{{else}}
<input id="question_${q.id}_radioBtn_${id}" type="checkbox" name="question_${q.id}" value="${id}">
{{/if}}
<label for="question_${q.id}_radioBtn_${id}">
${answer}</label>
</div>
{{/each}}
</div>
</div>
{{if i % 2 == 1 }}
</div>
{{/if}}
{{/each}}
</script>
<script id="assessmentTmpl" type="text/x-jquery-tmpl">
{{each(i, q) assessment }}
<div class="row">
<div id="question_${id}" class="question">
<div class="heading">
<div class="questionTitle">{{html question}}</div>
</div>
<div class="answers">
${question.id}
{{each(i, answer) answers }}
{{if answer !== '' }}
<div id="answer_${id}" class="option">
{{if type == 'radio' }}
<input id="question_${q.id}_radioBtn_${id}" type="radio" name="question_${q.id}" value="${id}">
{{else}}
<input id="question_${q.id}_radioBtn_${id}" type="checkbox" name="question_${q.id}" value="${id}">
{{/if}}
<label for="question_${q.id}_radioBtn_${id}">
${answer}</label>
</div>
{{/if}}
{{/each}}
</div>
</div>
</div>
{{/each}}
</script>
<script id="congratulationsTmpl" type="text/x-jquery-tmpl">
<div id="congbox">
{{if pass == true }}
<p><span id="congrats">Congratulations!</span></p>
<p class="failmsg">
<span id="failmsg">You have successfully completed<br />the simulation on Flashing the BCM</span><br></p>
{{/if}}
{{if pass != true }}
<p><span id="congrats"></span></p>
<p class="failmsg">
<span id="failmsg">Sorry, you have not successfully completed<br />the simulation on Flashing the BCM</span><br></p>
{{/if}}
<p class="scoremsg">Here is your score : ${totalScorePercent}%</p>
<p class="timemsg">Time Elapsed : ${totalTimeTaken}</p>
<div id="downloadBtn" title="View Performance Report"></div>
<div id="closeBtn" title="Close"></div>
</div>
</script>
<script id="progressReportTmpl" type="text/x-jquery-tmpl">
<div id="displayFormat">
<div id="mainTitle">Performance Report:</div>
<div id="subTitle">
<div id="totalAct">Total Activities<br/> <span>${totalActivities}</span></div>
<div id="totalScore">Total Score <br/> <span>${totalScore}/${totalPossibleScore}</span></div>
<div id="totalPerScore">Percentage <br/> <span>${totalScorePercent}%</span></div>
<div id="totalTime">Time Elapsed: <br/> <span>${totalTimeTaken}</span></div>
</div>
<div id="headerCover">
<div id="actNo"><p>Activity Number</p></div>
<div id="actTitle"><p>${moduleTitle}</p></div>
<div id="actTotScore"><p>Total Activity Score</p></div>
<div id="actScore"><p>Steps</p></div>
<div id="attempts"><p>Attempts</p></div>
<div id="points"><p>Your Score</p></div>
</div>
{{each(i, activity) activityData}}
{{if activity.totalScore != null}}
<div class="activityData">
<div class="row">
<div class="actNum"><p>${activity.id}</p></div>
<div class="actName"><p>${activity.title}</p></div>
<div class="actScore"><p>${activity.totalActivityScore}</p></div>
</div>
{{each(i, data) activity.scores}}
<div class="contentArea">
<div class="emptyArea"></div>
<div class="error">
<div class="errorData">
<div class="errMsg"><p>${data.reportLabel}</p></div>
<div class="errCount"><p>${data.attempts}</p></div>
<div class="stepPoint"><p>${score}</p></div>
</div>
</div>
</div>
{{/each}}
<div id ="contentAreaError" class="contentArea">
<div class="emptyArea"></div>
<div class="error">
<div class="errorData scoreCover">
<div class="stepScore"><p>Your Score:<p></div>
<div class="emptyCount"></div>
<div id="stepTotal1" class="stepTotalPoint"><p>${activity.totalScore}</p></div>
</div>
</div>
</div>
</div>
{{/if}}
{{/each}}
<div id="reviewArea">
<span>Review Questions:</span> ${assessmentData.totalScore} out of ${assessmentData.totalPossiblePoints}<span></span>
</div>
</div>
<div id="pdfFormat">
<div id="mainTitle">Performance Report</div>
<table id="subTitle">
<tr>
<td id="totalAct">Total Activities <br/> ${totalActivities}</div>
<td id="totalScore">Total Score <br/> ${totalScore}/${totalPossibleScore}</div>
<td id="totalPerScore">Percentage <br/> ${totalScorePercent}%</div>
<td id="totalTime">Time Elasped: <br/> ${totalTimeTaken}</div>
</tr>
</table>
{{each(i, activity) activityData}}
{{if activity.totalScore != null}}
<div class="activityData">
<div class="row">
<div class="actName heading">
<p>${activity.title}</p>
</div>
<div class="actScore heading">
<p>Total Activity Score: ${activity.totalActivityScore}</p>
</div>
</div>
<table>
<tr>
<td class="taskLabel heading">Question</td>
<td class="taskAttempts heading">Attempts</td>
<td class="taskScore heading">Your Score</td>
</tr>
{{each(i, data) activity.scores}}
<tr>
<td class="taskLabel">${data.reportLabel}</td>
<td class="taskAttempts">${data.attempts}</td>
<td class="taskScore">${score}</td>
</tr>
{{/each}}
</table>
<div class="yourScore">
<p>Your Score: ${activity.totalScore}</p>
</div>
</div>
{{/if}}
{{/each}}
<div id="reviewArea">
<span>Review Questions:</span> ${assessmentData.totalScore} out of ${assessmentData.totalPossiblePoints}<span></span>
</div>
</div>
</script>
</body>
</html>