forked from Didask/scol-r
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·120 lines (119 loc) · 3.01 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
<!DOCTYPE html>
<html>
<head>
<title>SCO local endpoint</title>
<meta charset="UTF-8" />
<script>
var exports = {};
</script>
<script type="text/javascript" src="lib/SCORMAdapter.js"></script>
<script type="text/javascript" src="lib/MessageHandler.js"></script>
<script type="text/javascript" src="lib/loadContent.js"></script>
<style type="text/css">
html,
body {
margin: 0;
padding: 0;
overflow: hidden;
width: 100%;
height: 100%;
}
body {
font-size: 20px;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #1d1046;
}
#wrapper {
display: flex;
flex-direction: column;
height: 100%;
}
.container {
width: 80%;
max-width: 1200px;
padding: 15px;
margin: auto;
}
#wrapper .header {
padding-top: 20px;
padding-bottom: 20px;
background-color: #f3f4f5;
}
#wrapper .messages {
flex-grow: 1;
padding-top: 20px;
padding-bottom: 20px;
}
#wrapper .messages p {
color: red;
}
#title-error-messages {
color: #1d1046;
}
#wrapper .footer {
background-color: #1d1046;
color: white;
padding-top: 10px;
padding-bottom: 10px;
}
#wrapper .footer a {
color: white;
}
iframe {
overflow: hidden;
height: 100%;
width: 100%;
}
iframe + #wrapper {
display: none;
}
#runtime-error {
position: fixed;
left: 20px;
bottom: 20px;
padding: 15px;
background-color: #f44a3d;
color: white;
font-size: 16px;
}
#runtime-error h6,
#runtime-error p {
margin: 0 0 10px;
}
#runtime-error p:last-child {
margin: 0;
}
#runtime-error:empty {
display: none;
}
</style>
</head>
<!-- Set the body's data-source attribute to the SCO's remote endpoint. -->
<body onload="loadContent();" data-source="">
<div id="wrapper">
<div class="header">
<div class="container">
<h1 id="title">Your content is loading...</h1>
<p id="subtitle">
Please wait, or if your content doesn't appear, try closing and
opening this window again.
</p>
</div>
</div>
<div class="messages container">
<h2 id="title-error-messages">
If the initialization fails, error messages will appear below:
</h2>
</div>
<div class="footer">
<div class="container" id="footer-content">
This content is loaded via
<a href="https://github.com/Didask/scol-r" target="_blank">SCOL-R</a>,
a cross-domain SCORM connector created by
<a href="https://www.didask.com" target="_blank">Didask</a>.
</div>
</div>
</div>
<div id="runtime-error"></div>
</body>
</html>