Skip to content

Commit

Permalink
Initial commit of pages
Browse files Browse the repository at this point in the history
  • Loading branch information
kowalike committed Sep 24, 2024
1 parent 5f219bc commit 33f4955
Show file tree
Hide file tree
Showing 982 changed files with 3,258 additions and 0 deletions.
126 changes: 126 additions & 0 deletions anatomy_of_citations_ama/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>
855 changes: 855 additions & 0 deletions anatomy_of_citations_ama/html5/data/css/output.min.css

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Loading

0 comments on commit 33f4955

Please sign in to comment.