Skip to content

Commit

Permalink
Uploaded a Stroyline branched scenario POC
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrbrianojee committed Jul 1, 2024
1 parent c40a55c commit 1e59d83
Show file tree
Hide file tree
Showing 47 changed files with 3,124 additions and 0 deletions.
126 changes: 126 additions & 0 deletions analytics-frame.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
<!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', 'screenResolution',
'pixelRatio'
];
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>
837 changes: 837 additions & 0 deletions html5/data/css/output.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions html5/data/js/5jSyNfxOMVf.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions html5/data/js/5kvlH07fG3f.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions html5/data/js/5xZ2Fz9OnFw.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions html5/data/js/628DpQqNxy1.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions html5/data/js/6JX0VVswS8i.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions html5/data/js/6Nk9kufB2Db.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions html5/data/js/6RAJV7klHqs.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions html5/data/js/6SaoNP8WHf9.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions html5/data/js/6VkZybMl6eJ.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions html5/data/js/6XWyW6qgT6I.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions html5/data/js/6khu6wke7GS.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions html5/data/js/6ksb1sfDsRa.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions html5/data/js/data.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions html5/data/js/frame.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions html5/data/js/paths.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions html5/lib/hls/hls.min.js

Large diffs are not rendered by default.

37 changes: 37 additions & 0 deletions html5/lib/scripts/bootstrapper.min.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions html5/lib/scripts/frame.desktop.min.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions html5/lib/scripts/frame.mobile.min.js

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions html5/lib/scripts/slides.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions html5/lib/stylesheets/desktop.min.css

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions html5/lib/stylesheets/mobile.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8"?><meta xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><project id="5UjG22mJgd3" courseid="6GgF4Ww2a5Y" thumburl="story_content/thumbnail.jpg" title="Problem-Solving" datepublished="2024-06-04T08:13:14" version="1.0.0.0" flashdata="story_content/data.swf" html5data="mobile/data.json" mobiledata="mobile/data.gz" enabledownload="false" duration="About 60 seconds" totalaudio="0" totalvideo="0"><description /><keywords /><slidemeta moniker="slide" monikerplural="slides" viewslides="12" slidecountdescription="12 slides" /><author name="martin" email="" website="" /><application name="Articulate Storyline" version="3.84.31722.0" xmlversion="4.0" /></project></meta>
Binary file added mobile/5VUtYvo99s3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mobile/5ZmAu0ensJh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mobile/5ftaPfkW9xe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mobile/5hm9tJgXAH1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mobile/6AI2bAfHmbC.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mobile/6hM7c3IodmO.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mobile/6pn6jUvPhq9.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mobile/Shape5ZXoCRTwNwc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mobile/Shape5bgzK6nhYTv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mobile/Shape5nIDiMmqy2X.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mobile/Shape6D1WYnLATDn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mobile/Shape6DlqNYL4AKd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mobile/Shape6Jtn7Q235pi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mobile/Shape6fuQCjbMudK.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mobile/Shape6lT67aFcGkc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 1e59d83

Please sign in to comment.