Commit fcd1abf9 authored by Anthony Freyermuth's avatar Anthony Freyermuth
Browse files

Updated Paris file from dlarose

parent ddb8ff14
Pipeline #56372 passed with stage
in 1 minute and 40 seconds
File added
File added
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="referrer" content="origin" />
<script>
/* jshint ignore:start */
// jscs:disable
// https://gist.github.com/982883
var uuid = function(a) {
return a // if the placeholder was passed, return
? ( // a random number from 0 to 15
a ^ // unless b is 8,
Math.random() // in which case
* 16 // a random number from
>> a/4 // 8 to 11
).toString(16) // in hexadecimal
: ( // or otherwise a concatenated string:
[1e7] + // 10000000 +
-1e3 + // -1000 +
-4e3 + // -4000 +
-8e3 + // -80000000 +
-1e11 // -100000000000,
).replace( // replacing
/[018]/g, // zeroes, ones, and eights with
uuid // random hex digits
);
};
window.frameHash = window.location.hash.replace(/^#/, '');
var postToParent = function(message) {
if (window.parent.postMessage != null) {
window.parent.postMessage(message, '*');
}
};
var onDidReceiveMessage = function(e) {
if (e.data.id === frameHash) {
var xhr = new XMLHttpRequest(),
now = new Date(),
data = {
messageId: uuid(),
sentAt: now.toISOString(),
batch: [ {
event: e.data.event,
properties: e.data.properties,
type: 'track',
messageId: uuid(),
timestamp: now.toISOString(),
context: {
ip: '0.0.0.0',
page: {
path: '/',
referrer: '',
search: '',
title: '',
url: 'http://'
}
},
integrations: {},
userId: e.data.aid
} ]
};
xhr.onreadystatechange = function() {
if (xhr.readyState === 4) {
postToParent({
id: frameHash,
message: 'xhr sent'
});
window.onDidReceiveMessage = null;
}
};
xhr.open('POST', 'https://metrics.articulate.com/v1/import');
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.send(JSON.stringify(data));
}
};
if ('onmessage' in window) {
window.addEventListener('message', onDidReceiveMessage, false);
} else {
// coming from flash, we will use older JS since we can expect some older IE versions
var validProps = [
'os', 'browser', 'playerVersion', 'playerType', 'lmsPresent', 'tinCanPresent',
'aoSupport', 'publishSource', 'protocol', 'productChannel', 'cid'
];
var aid,
props = window.location.search.replace(/^\?/, '').split('&'),
config = {};
for (var i = 0, ii = props.length, currProp; i < ii; i++) {
currProp = props[i].split('=');
if (validProps.indexOf(currProp[0]) > -1 && currProp.length === 2) {
config[currProp[0]] = currProp[1];
} else if (currProp[0] === 'aid') {
aid = currProp[1];
}
}
window.onDidReceiveMessage({
data: {
id: frameHash,
event: 'player_course_load',
properties: config,
aid: aid
}
})
}
/* jshint ignore:end */
// jscs:enable
</script>
</head>
<body>
</body>
<script>
postToParent({
id: window.frameHash,
message: 'loaded'
});
</script>
</html>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="referrer" content="origin" />
<script>
/* jshint ignore:start */
// jscs:disable
// https://gist.github.com/982883
var uuid = function(a) {
return a // if the placeholder was passed, return
? ( // a random number from 0 to 15
a ^ // unless b is 8,
Math.random() // in which case
* 16 // a random number from
>> a/4 // 8 to 11
).toString(16) // in hexadecimal
: ( // or otherwise a concatenated string:
[1e7] + // 10000000 +
-1e3 + // -1000 +
-4e3 + // -4000 +
-8e3 + // -80000000 +
-1e11 // -100000000000,
).replace( // replacing
/[018]/g, // zeroes, ones, and eights with
uuid // random hex digits
);
};
window.frameHash = window.location.hash.replace(/^#/, '');
var postToParent = function(message) {
if (window.parent.postMessage != null) {
window.parent.postMessage(message, '*');
}
};
var onDidReceiveMessage = function(e) {
if (e.data.id === frameHash) {
var xhr = new XMLHttpRequest(),
now = new Date(),
data = {
messageId: uuid(),
sentAt: now.toISOString(),
batch: [ {
event: e.data.event,
properties: e.data.properties,
type: 'track',
messageId: uuid(),
timestamp: now.toISOString(),
context: {
ip: '0.0.0.0',
page: {
path: '/',
referrer: '',
search: '',
title: '',
url: 'http://'
}
},
integrations: {},
userId: e.data.aid
} ]
};
xhr.onreadystatechange = function() {
if (xhr.readyState === 4) {
postToParent({
id: frameHash,
message: 'xhr sent'
});
window.onDidReceiveMessage = null;
}
};
xhr.open('POST', 'https://metrics.articulate.com/v1/import');
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.send(JSON.stringify(data));
}
};
if ('onmessage' in window) {
window.addEventListener('message', onDidReceiveMessage, false);
} else {
// coming from flash, we will use older JS since we can expect some older IE versions
var validProps = [
'os', 'browser', 'playerVersion', 'playerType', 'lmsPresent', 'tinCanPresent',
'aoSupport', 'publishSource', 'protocol', 'productChannel', 'cid'
];
var aid,
props = window.location.search.replace(/^\?/, '').split('&'),
config = {};
for (var i = 0, ii = props.length, currProp; i < ii; i++) {
currProp = props[i].split('=');
if (validProps.indexOf(currProp[0]) > -1 && currProp.length === 2) {
config[currProp[0]] = currProp[1];
} else if (currProp[0] === 'aid') {
aid = currProp[1];
}
}
window.onDidReceiveMessage({
data: {
id: frameHash,
event: 'player_course_load',
properties: config,
aid: aid
}
})
}
/* jshint ignore:end */
// jscs:enable
</script>
</head>
<body>
</body>
<script>
postToParent({
id: window.frameHash,
message: 'loaded'
});
</script>
</html>
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<!-- Cr?? ? l'aide de Storyline 360 - http://www.articulate.com -->
<!-- version: 3.48.24159.0 -->
<title>Test onboarding</title>
<meta http-equiv="x-ua-compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, 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.THREE = { };</script>
<meta name="robots" content="noindex, nofollow"></head>
<body style="background: #282828" class="cs-HTML theme-unified">
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<!-- Cr?? ? l'aide de Storyline 360 - http://www.articulate.com -->
<!-- version: 3.48.24159.0 -->
<title>Test onboarding</title>
<meta http-equiv="x-ua-compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, 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.THREE = { };</script>
<meta name="robots" content="noindex, nofollow"></head>
<body style="background: #282828" class="cs-HTML theme-unified">
<script src="player-interface.js"></script>
<script>!function(e){function n(e,i){return e.test(i)}function i(e){var i=e||navigator.userAgent,o=i.split("[FBAN");if(void 0!==o[1]&&(i=o[0]),this.apple={phone:n(t,i),ipod:n(d,i),tablet:!n(t,i)&&n(s,i),device:n(t,i)||n(d,i)||n(s,i)},this.amazon={phone:n(h,i),tablet:!n(h,i)&&n(a,i),device:n(h,i)||n(a,i)},this.android={phone:n(h,i)||n(b,i),tablet:!n(h,i)&&!n(b,i)&&(n(a,i)||n(r,i)),device:n(h,i)||n(a,i)||n(b,i)||n(r,i)},this.windows={phone:n(l,i),tablet:n(p,i),device:n(l,i)||n(p,i)},this.other={blackberry:n(f,i),blackberry10:n(u,i),opera:n(c,i),firefox:n(A,i),chrome:n(w,i),device:n(f,i)||n(u,i)||n(c,i)||n(A,i)||n(w,i)},this.seven_inch=n(v,i),this.any=this.apple.device||this.android.device||this.windows.device||this.other.device||this.seven_inch,this.phone=this.apple.phone||this.android.phone||this.windows.phone,this.tablet=this.apple.tablet||this.android.tablet||this.windows.tablet,"undefined"==typeof window)return this}function o(){var e=new i;return e.Class=i,e}var t=/iPhone/i,d=/iPod/i,s=/iPad/i,b=/(?=.*\bAndroid\b)(?=.*\bMobile\b)/i,r=/Android/i,h=/(?=.*\bAndroid\b)(?=.*\bSD4930UR\b)/i,a=/(?=.*\bAndroid\b)(?=.*\b(?:KFOT|KFTT|KFJWI|KFJWA|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|KFARWI|KFASWI|KFSAWI|KFSAWA)\b)/i,l=/IEMobile/i,p=/(?=.*\bWindows\b)(?=.*\bARM\b)/i,f=/BlackBerry/i,u=/BB10/i,c=/Opera Mini/i,w=/(CriOS|Chrome)(?=.*\bMobile\b)/i,A=/(?=.*\bFirefox\b)(?=.*\bMobile\b)/i,v=new RegExp("(?:Nexus 7|BNTV250|Kindle Fire|Silk|GT-P1000)","i");"undefined"!=typeof module&&module.exports&&"undefined"==typeof window?module.exports=i:"undefined"!=typeof module&&module.exports&&"undefined"!=typeof window?module.exports=o():"function"==typeof define&&define.amd?define("isMobile",[],e.isMobile=o()):e.isMobile=o()}(this);
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" aria-hidden="true" tabIndex="-1"></div>
<div id="preso"></div>
<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: '#282828',
features: 'AccessibleText,MultipleQuizTracking,SettingsControl,TextStyleHyperlinks',
themeName: 'unified',
preloaderColor: '#FFFFFF',
suppressAnalytics: false,
productChannel: 'stable',
publishSource: 'storyline',
aid: 'aid|9c5003ff-1a90-45dd-8204-bd06ff8cee97',
cid: '18b319ec-0521-4bed-bff3-da1b0543439d',
playerVersion: '3.48.24159.0',
maxIosVideoElements: 5,
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;
}
};
(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 type="text/javascript">
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">Test onboarding</div>
</div>
<div class="mobile-chrome-warning"></div>
<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>
<script>!function(e){function n(e,i){return e.test(i)}function i(e){var i=e||navigator.userAgent,o=i.split("[FBAN");if(void 0!==o[1]&&(i=o[0]),this.apple={phone:n(t,i),ipod:n(d,i),tablet:!n(t,i)&&n(s,i),device:n(t,i)||n(d,i)||n(s,i)},this.amazon={phone:n(h,i),tablet:!n(h,i)&&n(a,i),device:n(h,i)||n(a,i)},this.android={phone:n(h,i)||n(b,i),tablet:!n(h,i)&&!n(b,i)&&(n(a,i)||n(r,i)),device:n(h,i)||n(a,i)||n(b,i)||n(r,i)},this.windows={phone:n(l,i),tablet:n(p,i),device:n(l,i)||n(p,i)},this.other={blackberry:n(f,i),blackberry10:n(u,i),opera:n(c,i),firefox:n(A,i),chrome:n(w,i),device:n(f,i)||n(u,i)||n(c,i)||n(A,i)||n(w,i)},this.seven_inch=n(v,i),this.any=this.apple.device||this.android.device||this.windows.device||this.other.device||this.seven_inch,this.phone=this.apple.phone||this.android.phone||this.windows.phone,this.tablet=this.apple.tablet||this.android.tablet||this.windows.tablet,"undefined"==typeof window)return this}function o(){var e=new i;return e.Class=i,e}var t=/iPhone/i,d=/iPod/i,s=/iPad/i,b=/(?=.*\bAndroid\b)(?=.*\bMobile\b)/i,r=/Android/i,h=/(?=.*\bAndroid\b)(?=.*\bSD4930UR\b)/i,a=/(?=.*\bAndroid\b)(?=.*\b(?:KFOT|KFTT|KFJWI|KFJWA|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|KFARWI|KFASWI|KFSAWI|KFSAWA)\b)/i,l=/IEMobile/i,p=/(?=.*\bWindows\b)(?=.*\bARM\b)/i,f=/BlackBerry/i,u=/BB10/i,c=/Opera Mini/i,w=/(CriOS|Chrome)(?=.*\bMobile\b)/i,A=/(?=.*\bFirefox\b)(?=.*\bMobile\b)/i,v=new RegExp("(?:Nexus 7|BNTV250|Kindle Fire|Silk|GT-P1000)","i");"undefined"!=typeof module&&module.exports&&"undefined"==typeof window?module.exports=i:"undefined"!=typeof module&&module.exports&&"undefined"!=typeof window?module.exports=o():"function"==typeof define&&define.amd?define("isMobile",[],e.isMobile=o()):e.isMobile=o()}(this);
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" aria-hidden="true" tabIndex="-1"></div>
<div id="preso"></div>
<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: '#282828',
features: 'AccessibleText,MultipleQuizTracking,SettingsControl,TextStyleHyperlinks',
themeName: 'unified',
preloaderColor: '#FFFFFF',
suppressAnalytics: false,
productChannel: 'stable',
publishSource: 'storyline',
aid: 'aid|9c5003ff-1a90-45dd-8204-bd06ff8cee97',
cid: '18b319ec-0521-4bed-bff3-da1b0543439d',
playerVersion: '3.48.24159.0',
maxIosVideoElements: 5,
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;
}
};
(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 type="text/javascript">
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); });