-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcoursePlayer.html
107 lines (82 loc) · 2.72 KB
/
coursePlayer.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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Course Player</title>
<meta name="generator" content="TextMate http://macromates.com/">
<meta name="author" content="kaushik ganguly">
<link href='http://fonts.googleapis.com/css?family=Strait' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="coursePlayer.js"></script>
<script type="text/javascript">
var c;
$(document).ready(function(){
$(".startCourseInPlugin").click(function(){
c=new coursePlayer(JSON.parse($(".courseContent").val()),function(coursee){ $(".courseContent").show();});
$(".courseContent").hide();
});
});
</script>
</head>
<body style="font-family: 'Strait', sans-serif;">
<textarea class="courseContent" style="width:500px;height:500px;">{
"courseName":"cloud computing",
"hasTimeLimit":true,
"timeLimit":3600,
"welcomeMessage":"welcome to cloud computing",
"chapters":[
{
"chapterName":"introduction - cloud computing",
"type":"webpage",
"url":"http://en.wikipedia.org/wiki/Cloud_computing",
"lockState":true,
"questions":[
{
"type":"qanda",
"question":"how many service models are there for cloud computing?(provide numeric answer)",
"answer":"4",
"answered":false,
"isCorrect":false,
"userAnswer":""
},
{
"type":"options",
"question":"which year Amazon web services was launched?",
"options":["2010","2006","1996"],
"answer":"2006",
"answered":true,
"isCorrect":false,
"userAnswer":""
},
{
"type":"fillblanks",
"question":"To compensate for the costly mainframes, a change was made to allow multiple users to share both the physical access to the computer from multiple terminals as well as to share the CPU time allowed for a greater return on the investment. This eliminated periods of daaash which became known in the industry as daaash .",
"answer":["inactivity","time-sharing"],
"answered":false,
"isCorrect":false,
"userAnswer":[]
}
]
},
{
"chapterName":"cloud computing video",
"type":"youtubeiframeembed",
"text":"<iframe width=\"853\" height=\"480\" src=\"http://www.youtube.com/embed/ae_DKNwK_ms\" frameborder=\"0\" allowfullscreen></iframe>",
"lockState":true,
"questions":[
{
"type":"fillblanks",
"question":"your apps on cloud work on a daaash datacenter .",
"answer":["shared"],
"answered":false,
"isCorrect":false,
"userAnswer":[]
}
]
}
]
}</textarea>
<button class="startCourseInPlugin">start course</button>
</body>
</html>