-
Notifications
You must be signed in to change notification settings - Fork 5
/
share.html
39 lines (35 loc) · 1.23 KB
/
share.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
<!DOCTYPE html>
<html><head>
<meta charset="UTF-8"/>
<link rel="stylesheet" type="text/css" href="css/main.css"/>
<link rel="stylesheet" type="text/css" href="css/guide.css"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Share — Interactive Oblivion Checklist</title>
</head>
<body>
Downloading Save...
<script type="module">
import * as userdata from './js/userdata.mjs'
import * as sharing from './js/sharing.mjs'
window.sharing = sharing;
window.userdata = userdata;
(function(){
if(userdata.loadCookie("debug") == true){
window.debug = true;
}
//load a very minimal set of scripts, just enough to download progress.
let shareCode = new URLSearchParams(window.location.search).get("code");
if(shareCode == null || shareCode == ""){
window.location.href = "./checklist.html";
}
else{
userdata.loadSettingsFromCookie();
settings.remoteShareCode = shareCode;
userdata.saveCookie("settings",settings);
sharing.startSpectating(false,false)
.then(()=>window.location.href = "./checklist.html");
}
}).call(window);
</script>
</body>
</html>