-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlaunch.html
49 lines (38 loc) · 1.12 KB
/
launch.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
<!doctype html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript">
window.location = 'index.html?endpoint=' + getLRSEndpoint() + '&actor=' + getActor() + '&auth=' + getAuth() + '&activity_id=' + getActivityId() + '®istration=' + getRegistration();
function getLRSEndpoint() {
var endpoint = "https://saas.learninglocker.net/data/xAPI/";
return encodeURIComponent(endpoint);
}
function getActor() {
var actor = {
mbox: "mailto:[email protected]",
name: "Test User"
};
return JSON.stringify(actor);
}
function getAuth() {
// "Basic " + toBase64('username:password');
var auth = "";
return auth;
}
function getActivityId() {
var activityId = "https://example.com/unique_identifier";
return encodeURIComponent(activityId);
}
function getRegistration() {
var uuid = "";
return uuid;
}
</script>
</head>
<body>
</body>
</html>