-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
471 lines (390 loc) · 20.2 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
<!doctype html>
<html lang="de-DE">
<head>
<meta charset="utf-8">
<!-- Created using Storyline 360 - http://www.articulate.com -->
<!-- version: 3.84.31722.0 -->
<title>Problem-Solving</title>
<meta http-equiv="x-ua-compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no,shrink-to-fit=no,minimal-ui"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<style>
html, body { height: 100%; padding: 0; margin: 0 }
#app { height: 100%; width: 100%; }
</style>
<script>
window.DS = {};
window.globals = {
DATA_PATH_BASE: '',
HAS_FRAME: true,
HAS_SLIDE: true,
lmsPresent: false,
tinCanPresent: false,
cmi5Present: false,
aoSupport: false,
scale: 'noscale',
captureRc: false,
browserSize: 'optimal',
bgColor: '#FFFFFF',
features: 'BackgroundAudioVolumeVariable,ConnectionMessages,DropInBase,DropInMisc,DropInVectors,JsApi,LayerPresentAsDialog,MultipleQuizTracking,PlayerTooltips,UpdatedThemeEditor',
themeName: 'unified',
preloaderColor: '#8C8C8C',
suppressAnalytics: false,
productChannel: 'stable',
publishSource: 'storyline',
aid: 'aid|8a00f03f-eb54-468b-a073-4c5f747e170b',
cid: 'dea8fef8-0118-4905-8e0f-52800737fed3',
playerVersion: '3.84.31722.0',
publishTimestamp: '2024-06-04T08:13:24.6734293Z',
maxIosVideoElements: 10,
connectionSettings: { message: 'Sie%20sind%20offline.%20Die%20Verbindung%20wird%20wiederhergestellt%20...', useDarkTheme: true, mode: 'disabled' },
hasFeature: function(feature) {
return this.features.split(',').includes(feature);
},
parseParams: function(qs) {
if (window.globals.parsedParams != null) {
return window.globals.parsedParams;
}
qs = (qs || window.location.search.substr(1)).split('+').join(' ');
var params = {},
tokens,
re = /[?&]?([^=]+)=([^&]*)/g;
while (tokens = re.exec(qs)) {
params[decodeURIComponent(tokens[1]).trim()] =
decodeURIComponent(tokens[2]).trim();
}
window.globals.parsedParams = params;
return params;
}
};
</script>
<script>
var isIe11 = ('ActiveXObject' in window || window.MSBlobBuilder != null)
&& window.msCrypto != null && !window.ActiveXObject;
if (isIe11) {
window.globals.unsupportedBrowser = true;
document.write(atob('PHN0eWxlPg0KICBAZm9udC1mYWNlIHsNCiAgICBmb250LWZhbWlseTogIk9wZW4gU2FucyBGdWxsIjsNCiAgICBmb250LXN0eWxlOiBub3JtYWw7DQogICAgZm9udC13ZWlnaHQ6IDQwMDsNCiAgICBzcmM6IHVybCgiLi9odG1sNS9saWIvc3R5bGVzaGVldHMvbW9iaWxlLWZvbnRzL29wZW4tc2Fucy1yZWd1bGFyLndvZmYiKSBmb3JtYXQoIndvZmYiKTsNCiAgfQ0KDQogICogew0KICAgIG1hcmdpbjogMDsNCiAgICBwYWRkaW5nOiAwOw0KICB9DQoNCiAgYm9keSwNCiAgaHRtbCB7DQogICAgYmFja2dyb3VuZDogYmxhY2s7DQogICAgY29sb3I6IHdoaXRlOw0KICAgIGZvbnQtZmFtaWx5OiAiT3BlbiBTYW5zIEZ1bGwiLCBzYW5zLXNlcmlmOw0KICAgIGZvbnQtc2l6ZTogMTZweDsNCiAgICBoZWlnaHQ6IDEwMCU7DQogICAgdGV4dC1hbGlnbjogY2VudGVyOw0KICAgIG92ZXJmbG93OiBoaWRkZW47DQogIH0NCg0KICAuc2xpZGUtbG9hZGVyIHsNCiAgICBkaXNwbGF5OiBub25lOw0KICB9DQoNCiAgLm1vYmlsZS1zdGFydC1jb3Vyc2UtdGl0bGUgew0KICAgIGZvbnQtc2l6ZTogMjlweDsNCiAgICBwYWRkaW5nLWJvdHRvbTogMzMuNzVweDsNCiAgICBwYWRkaW5nLXRvcDogMzMuNzVweDsNCiAgICB0ZXh0LXNoYWRvdzogNHB4IDRweCAyNXB4IHJnYigwLCAwLCAwLCAuMyk7DQogICAgY29sb3I6ICNlOGU4ZTg7DQogICAgei1pbmRleDogOTk5Ow0KICB9DQoNCiAgcCB7DQogICAgZm9udC1zaXplOiAxLjFlbTsNCiAgfQ0KDQogIHNwYW4gew0KICAgIGhlaWdodDogMTAwJTsNCiAgICB2ZXJ0aWNhbC1hbGlnbj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biBvZiBhIHN1cHBvcnRlZCBicm93c2VyIC0NCiAgICAgIDxhIGhyZWY9Imh0dHBzOi8vd3d3Lmdvb2dsZS5jb20vY2hyb21lL2Rvd25sb2Fkcy8iIHRhcmdldD0iX2JsYW5rIj5Hb29nbGUgQ2hyb21lPC9hPiwNCiAgICAgIDxhIGhyZWY9Imh0dHBzOi8vd3d3Lm1pY3Jvc29mdC5jb20vZW4tdXMvZWRnZSIgdGFyZ2V0PSJfYmxhbmsiPk1pY3Jvc29mdCBFZGdlPC9hPiwNCiAgICAgIG9yDQogICAgICA8YSBocmVmPSJodHRwczovL3d3dy5tb3ppbGxhLm9yZy9lbi1VUy9maXJlZm94L25ldy8iIHRhcmdldD0iX2JsYW5rIj5Nb3ppbGxhIEZpcmVmb3g8L2E+Lg0KICAgIDwvcD4NCiAgICA8ZGl2IGNsYXNzPSJidG4tY29udGFpbiI+DQogICAgICA8YSBjbGFzcz0ibGVhcm4iIGhyZWY9Imh0dHBzOi8vYXJ0aWN1bGF0ZS5jb20vc3VwcG9ydC9hcnRpY2xlL0VuZC1vZi1TdXBwb3J0LWZvci1JbnRlcm5ldC1FeHBsb3Jlci0xMSINCiAgICAgICAgdGFyZ2V0PSJfYmxhbmsiPkxlYXJuIE1vcmU8L2E+DQogICAgPC9kaXY+DQogIDwvZGl2Pg0KPC9kaXY+DQo='));
}
</script>
<script>
if (window.globals.hasFeature('MultiLanguageSupport')) {
}
</script>
<script>window.THREE = { };</script>
</head>
<body style="background: #FFFFFF" class="cs-HTML theme-unified">
<!-- 360 -->
<script>!function(){var e,i=/iPhone/i,o=/iPod/i,n=/iPad/i,t=/\biOS-universal(?:.+)Mac\b/i,r=/\bAndroid(?:.+)Mobile\b/i,a=/Android/i,d=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,p=/Silk/i,l=/Windows Phone/i,u=/\bWindows(?:.+)ARM\b/i,b=/BlackBerry/i,s=/BB10/i,c=/Opera Mini/i,f=/\b(CriOS|Chrome)(?:.+)Mobile/i,h=/Mobile(?:.+)Firefox\b/i,v=function(e){return void 0!==e&&"MacIntel"===e.platform&&"number"==typeof e.maxTouchPoints&&e.maxTouchPoints>1&&"undefined"==typeof MSStream};e=function(e){var m={userAgent:"",platform:"",maxTouchPoints:0};e||"undefined"==typeof navigator?"string"==typeof e?m.userAgent=e:e&&e.userAgent&&(m={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0}):m={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var g=m.userAgent,y=g.split("[FBAN");void 0!==y[1]&&(g=y[0]),void 0!==(y=g.split("Twitter"))[1]&&(g=y[0]);var A=function(e){return function(i){return i.test(e)}}(g),w={apple:{phone:A(i)&&!A(l),ipod:A(o),tablet:!A(i)&&(A(n)||v(m))&&!A(l),universal:A(t),device:(A(i)||A(o)||A(n)||A(t)||v(m))&&!A(l)},amazon:{phone:A(d),tablet:!A(d)&&A(p),device:A(d)||A(p)},android:{phone:!A(l)&&A(d)||!A(l)&&A(r),tablet:!A(l)&&!A(d)&&!A(r)&&(A(p)||A(a)),device:!A(l)&&(A(d)||A(p)||A(r)||A(a))||A(/\bokhttp\b/i)},windows:{phone:A(l),tablet:A(u),device:A(l)||A(u)},other:{blackberry:A(b),blackberry10:A(s),opera:A(c),firefox:A(h),chrome:A(f),device:A(b)||A(s)||A(c)||A(h)||A(f)},any:!1,phone:!1,tablet:!1};return w.any=w.apple.device||w.android.device||w.windows.device||w.other.device,w.phone=w.apple.phone||w.android.phone||w.windows.phone,w.tablet=w.apple.tablet||w.android.tablet||w.windows.tablet,w}(),"object"==typeof exports&&"undefined"!=typeof module?module.exports=e:"function"==typeof define&&define.amd?define((function(){return e})):this.isMobile=e}();
window.isMobile.apple.tablet = window.isMobile.apple.tablet ||
(navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1);
window.isMobile.apple.device = window.isMobile.apple.device || window.isMobile.apple.tablet;
window.isMobile.tablet = window.isMobile.tablet || window.isMobile.apple.tablet;
window.isMobile.any = window.isMobile.any || window.isMobile.apple.tablet;
</script>
<div id="focus-sink" tabindex="-1"></div>
<div id="preso"></div>
<script>
(function() {
var classTypes = [ 'desktop', 'mobile', 'phone', 'tablet' ];
var addDeviceClasses = function(prefix, testObj) {
var curr, i;
for (i = 0; i < classTypes.length; i++) {
curr = classTypes[i];
if (testObj[curr]) {
document.body.classList.add(prefix + curr);
}
}
};
var params = window.globals.parseParams(),
isDevicePreview = params.devicepreview === '1',
isPhoneOverride = params.deviceType === 'phone' || (isDevicePreview && params.phone == '1'),
isTabletOverride = (params.deviceType === 'tablet' || isDevicePreview) && !isPhoneOverride,
isMobileOverride = isPhoneOverride || isTabletOverride;
var deviceView = {
desktop: !window.isMobile.any && !isMobileOverride,
mobile: window.isMobile.any || isMobileOverride,
phone: isPhoneOverride || (window.isMobile.phone && !isTabletOverride),
tablet: isTabletOverride || window.isMobile.tablet
};
window.globals.deviceView = deviceView;
window.isMobile.desktop = !window.isMobile.any;
window.isMobile.mobile = window.isMobile.any;
addDeviceClasses('view-', deviceView);
})();
</script>
<script src='story_content/user.js' type=text/javascript></script>
<div class="slide-loader"></div>
<script>
var doc = document, loader = doc.body.querySelector('.slide-loader'); [ 1, 2, 3 ].forEach(function(n) { var d = doc.createElement('div'); d.style.backgroundColor = window.globals.preloaderColor; d.classList.add('mobile-loader-dot'); d.classList.add('dot' + n); loader.appendChild(d); });
</script>
<div class="mobile-load-title-overlay" style="display: none">
<div class="mobile-load-title">Problem-Solving</div>
</div>
<div class="mobile-chrome-warning"></div>
<style>
.warn-connection-dialog {
display: none;
background: transparent;
pointer-events: all;
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: 999;
}
.warn-connection-content {
pointer-events: all;
border-radius: 4px;
background: white;
border: 1px solid #E7E7E7;
color: #333333;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
transition: all 150ms ease-out;
position: absolute;
white-space: nowrap;
}
.view-phone.is-landscape .warn-connection-content {
left: 23px;
bottom: 23px;
}
.view-tablet.is-landscape .warn-connection-content {
left: 50%;
top: 20px;
transform: translateX(-50%);
}
.view-mobile.is-portrait .warn-connection-content {
transform: translate(-50%, calc(-100% - 15px));
}
.warn-connection-content p {
display: inline-block;
margin: 0 8px 0 0;
line-height: 33px;
font-size: 11px;
}
.warn-connection-content svg {
position: relative;
vertical-align: middle;
margin: 0 2px 2px 8px;
}
.view-desktop .warn-connection-content {
left: 1.5em;
bottom: 1.5em;
}
.view-desktop .warn-connection-content p {
font-size: 1.1em;
}
.is-offline .warn-connection-dialog {
display: block;
}
.is-offline .cs-panel * {
pointer-events: none !important;
}
.is-offline .cs-panel {
pointer-events: all !important;
}
.is-offline #nav-controls * {
pointer-events: none !important;
}
.is-offline #nav-controls {
pointer-events: all !important;
}
</style>
<div class="warn-connection-dialog" role="alertdialog" aria-modal="true" tabindex="0" aria-labelledby="warn-connection-message">
<div class="warn-connection-content">
<svg width="17" height="15" viewBox="0 0 17 15" xmlns="http://www.w3.org/2000/svg">
<path fill="#8F0000" stroke="white" d="M16.07,12.98 L15.88,12.23 L9.51,1.21 C8.97,0.26,7.6,0.26,7.06,1.21 L0.69,12.23 C0.15,13.16,0.81,14.36,1.91,14.36 H14.65 C15.47,14.36,16.05,13.7,16.07,12.98 Z"/>
<path fill="white" stroke="white" d="M8.58,5.5 C8.35,5.28,8.5,5.35,8.21,5.32 C8.09,5.35,7.97,5.49,7.96,5.67 C7.97,5.79,7.98,5.92,7.98,6.04 L7.98,6.04 C7.99,6.17,8,6.31,8.01,6.43 L8.01,6.44 C8.03,6.92,8.06,7.41,8.09,7.9 L8.09,7.9 C8.12,8.39,8.14,8.88,8.17,9.37 C8.17,9.39,8.18,9.42,8.2,9.44 C8.23,9.46,8.25,9.47,8.28,9.47 C8.31,9.47,8.34,9.46,8.35,9.44 C8.37,9.43,8.38,9.4,8.39,9.35 L8.39,9.34 C8.39,9.24,8.4,9.15,8.4,9.05 L8.4,9.05 C8.41,8.96,8.41,8.86,8.42,8.75 C8.43,8.44,8.45,8.12,8.47,7.81 L8.47,7.81 C8.49,7.49,8.51,7.18,8.53,6.87 C8.55,6.46,8.56,6.05,8.59,5.64 L8.6,5.62 C8.6,5.57,8.59,5.53,8.58,5.5 L8.21,5.32 Z"/>
<circle fill="white" stroke="white" cx="8.3" cy="11.35" r="0.3"/>
</svg>
<p id="warn-connection-message">You are offline. Trying to reconnect...</p>
</div>
</div>
<script>
(function() {
window.DS.connection = {
warningShown: false,
assets: {},
loadingAssetGroup: false,
retryDelay: 500
};
var connectionSettings = window.globals.connectionSettings || {};
// The `window.globals.features` variable must be set in `webpack.dev.config` when testing locally - it is not enough
// to have it in the data - but it must be set there as well.
var useConnectionMessages = window.AbortController != null &&
window.location.protocol != 'file:' &&
window.globals.features.indexOf('ConnectionMessages') != -1 &&
connectionSettings.mode === 'normal';
window.DS.connection.useConnectionMessages = useConnectionMessages;
var assetCount = 0;
var checkLoadedId;
if (useConnectionMessages && connectionSettings != null) {
var contentEl = document.querySelector('.warn-connection-content');
var messageEl = contentEl.querySelector('p');
if (connectionSettings.useDarkTheme) {
contentEl.style.borderColor = '#BABBBA';
contentEl.style.backgroundColor = '#282828';
contentEl.style.color = '#FFFFFF';
}
if (connectionSettings.message != null) {
messageEl.textContent = window.decodeURIComponent(connectionSettings.message);
}
}
function checkAssetsReady() {
for (var i in DS.connection.assets) {
if (!DS.connection.assets[i].success) {
return false;
}
}
return true;
}
function stopAssetGroup() {
if (!useConnectionMessages) { return; }
assetCount = 0;
DS.connection.oldAssetGroup = DS.connection.assets;
DS.connection.assets = {};
DS.connection.loadingAssetGroup = false;
clearInterval(checkLoadedId);
}
function startAssetGroup() {
if (!useConnectionMessages) { return; }
var ticks = 0;
clearInterval(checkLoadedId);
checkLoadedId = setInterval(function() {
var loaded = 0;
if (assetCount === 0 && loaded === 0) {
clearInterval(checkLoadedId);
return;
}
for (var i in DS.connection.assets) {
if (DS.connection.assets[i].success) {
loaded++;
}
}
if (assetCount === loaded && checkAssetsReady()) {
for (var i in DS.connection.assets) {
if (DS.connection.assets[i].action) {
DS.connection.assets[i].action();
}
}
hideWarning();
stopAssetGroup();
}
}, 100)
}
function requiredAsset(url, action, retry, type) {
if (!useConnectionMessages) { return; }
if (DS.connection.assets[url]) { return; }
DS.connection.assets[url] = {
success: false, action: action, retry: retry, type: type
};
assetCount = Object.keys(DS.connection.assets).length;
if (!DS.connection.loadingAssetGroup) {
startAssetGroup();
}
DS.connection.loadingAssetGroup = true;
}
function assetLoaded(url) {
if (!useConnectionMessages) { return; }
if (DS.connection.assets[url]) {
DS.connection.assets[url].success = true;
}
}
function assetFailed(url) {
if (!useConnectionMessages) { return; }
if (!DS.connection.assets[url]) {
if (/\.js$/.test(url) && url.indexOf('transcripts') === -1) {
setTimeout(function() {
if (DS.connection.lastSlideLoaded != null) {
DS.connection.lastSlideLoaded();
}
}, DS.connection.retryDelay);
}
return;
}
if (!DS.connection.warningShown) { showWarning(); }
if (DS.connection.assets[url].retry) {
setTimeout(function() {
if (!DS.connection.assets[url].success) {
DS.connection.assets[url].retry()
}
}, DS.connection.retryDelay);
}
}
function hideWarning() {
document.body.classList.remove('is-offline');
DS.connection.warningShown = false;
enableKeys();
}
DS.connection.hideWarning = hideWarning
function showWarning(btn) {
document.body.classList.add('is-offline')
DS.connection.warningShown = true;
updateWarningPosition();
disableKeys();
}
function updateWarningPosition() {
if (!DS.connection.warningShown) {
return;
}
var isPortrait = document.body.classList.contains('is-portrait');
var isMobile = document.body.classList.contains('view-mobile');
var warningEl = document.querySelector('.warn-connection-content');
if (isPortrait && isMobile) {
var slide = document.querySelector('.primary-slide');
var slideRect = slide != null
? slide.getBoundingClientRect()
: { top: window.innerHeight, left: 0, width: window.innerWidth };
warningEl.style.top = `${slideRect.top}px`
warningEl.style.left = `${slideRect.left + slideRect.width / 2}px`
} else {
warningEl.style.top = null;
warningEl.style.left = null;
}
window.requestAnimationFrame(updateWarningPosition);
}
function onDisableKeyDown(e) {
e.preventDefault();
e.stopImmediatePropagation();
}
function onDisableKeyUp(e) {
e.preventDefault();
e.stopImmediatePropagation();
}
var accStyle = document.createElement('style');
var warnDialogEl = document.querySelector('.warn-connection-dialog');
function disableKeys() {
if (DS.views && DS.views.nsStack && DS.views.nsStack.length === 1) {
DS.views.nsStack[0].tabReachable = false
DS.views.nsStack[0].updateTabIndex(true, true);
}
accStyle.innerHTML = '.acc-shadow-dom { display: none; }';
document.body.appendChild(accStyle);
warnDialogEl.parentNode.append(warnDialogEl);
warnDialogEl.focus();
}
function enableKeys() {
accStyle.remove();
if (DS.views && DS.views.nsStack && DS.views.nsStack.length === 1 && DS.views.nsStack[0].name === '_frame') {
DS.views.nsStack[0].tabReachable = true;
DS.views.nsStack[0].updateTabIndex();
}
}
// these will all be noops if the feature flag isn't set in
// the data and `window.globals.features`
DS.connection.requiredAsset = requiredAsset;
DS.connection.assetLoaded = assetLoaded;
DS.connection.assetFailed = assetFailed;
DS.connection.stopAssetGroup = stopAssetGroup;
DS.connection.startAssetGroup = startAssetGroup;
})();
</script>
<script>
if (window.autoSpider && window.vInterfaceObject) {
document.querySelector('.mobile-load-title-overlay').style.display = 'none';
}
</script>
<link rel="stylesheet" href="html5/data/css/output.min.css" data-noprefix/>
</body>
<script src="html5/lib/scripts/bootstrapper.min.js"></script>
</html>