-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
176 lines (149 loc) · 5.32 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
<!DOCTYPE html>
<html lang="en" class="">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<title>Analysing the Literature and Writing the Review</title>
<link type="text/css" rel="stylesheet" href="lib/icomoon.css">
<script type="text/javascript" src="lib/player-0.0.11.min.js"></script>
<script type="text/javascript" src="lib/lzwcompress.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-NC3PPY2JZB">
</script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-NC3PPY2JZB');
</script>
<!-- Resize Hack -->
<script type="text/javascript">
window.resizeTo(screen.width, screen.height);
</script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script id="__ENTRY__" type="application/json">
{".js":["rise/99865a6d.js"]}
</script>
<script id="__REMOTE_ENTRIES__" type="application/json">
{"mondrian":{".js":["mondrian/entry.js"]}}
</script>
<script>
(function() {
const jsonp = {}
function loadModule(manifest) {
const p = []
if (manifest['.css'] != null) {
for (var idx = 0; idx < manifest['.css'].length; idx++) {
p.push(new Promise((resolve, reject) => {
var link = document.createElement('link')
link.onload = resolve
link.onerror = reject
link.rel = 'stylesheet'
link.href = 'lib/' + manifest['.css'][idx]
document.body.appendChild(link)
}))
}
}
if (manifest['.js'] != null) {
for (var idx = 0; idx < manifest['.js'].length; idx++) {
p.push(new Promise((resolve, reject) => {
var script = document.createElement('script')
script.onload = resolve
script.onerror = reject
script.src = 'lib/' + manifest['.js'][idx]
document.body.appendChild(script)
}))
}
}
return Promise.all(p)
}
function deserialize(str) {
const buffer = Uint8Array.from(atob(str), c => c.charCodeAt(0))
const json = new TextDecoder().decode(buffer)
const result = JSON.parse(json)
return result
}
function __loadEntry() {
return loadModule(JSON.parse(document.getElementById('__ENTRY__').textContent))
}
function __loadRemoteEntry(name) {
const manifest = JSON.parse(document.getElementById('__REMOTE_ENTRIES__').textContent)
if (manifest[name] == null) throw new Error(`Missing manifest for remote entry "${name}".`)
return loadModule(manifest[name])
}
async function __loadJsonp(id, path) {
try {
return await new Promise((resolve, reject) => {
try {
jsonp[id] = resolve
const script = document.createElement('script')
script.onerror = reject
script.src = `./${path}`
document.head.appendChild(script)
} catch (err) {
reject(err)
}
})
} finally {
delete jsonp[id]
}
}
function __resolveJsonp(id, data) {
const resolve = jsonp[id]
if (typeof resolve !== 'function') {
throw new Error(`Could not load JSONP "${id}"`)
}
resolve(data)
}
async function __fetchCourse(name) {
name = name == null ? window.i18n.default : name
if (!window.i18n.available.includes(name)) {
console.warn(`Could not load locale "${name}"`)
name = window.i18n.available[0]
}
const encoded = await __loadJsonp(`course:${name}`, `locales/${name}.js`)
const courseData = deserialize(encoded)
return courseData
}
window.__loadEntry = __loadEntry
window.__loadRemoteEntry = __loadRemoteEntry
window.__loadJsonp = __loadJsonp
window.__resolveJsonp = __resolveJsonp
window.__fetchCourse = __fetchCourse
})()
</script>
</head>
<body>
<div id="app"></div>
<script type="text/javascript">
(function(root) {
window.i18n = {"available":["und"],"default":"und"};
window.partnerContent = [];
function isExport() {
return true;
}
function resolvePath(path) {
return ('assets/').concat(path);
}
function resolveFontPath(font) {
return ('lib/fonts/').concat(font.key.split('/').reverse()[0]);
}
function fetchAvailableLocales() {
return window.i18n
}
root.Runtime = {
fetch: window.__fetchCourse,
fetchAvailableLocales: fetchAvailableLocales,
isExport: isExport,
resolvePath: resolvePath,
resolveFontPath: resolveFontPath
};
}(window));
</script>
<script>__loadEntry()</script>
</body>
</html>