-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
41 lines (37 loc) · 987 Bytes
/
index.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
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<style>
html,
body,
#jsdos {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
</style>
<script src="js-dos/js-dos.js"></script>
<link href="js-dos/js-dos.css" rel="stylesheet">
</head>
<body>
<div id="jsdos" />
<script>
emulators.pathPrefix = "js-dos/";
Dos(document.getElementById("jsdos"), {
/* using js-dos services, readmore: https://js-dos.com/v7/build/docs/jsdos-services#saveload-on-backend
clientId: (userGesture) => {
if (!userGesture) {
return Promise.resolve(null); // <-- return cached { namespace, id } or null
}
return Promise.resolve({
namespace: "test", // <-- your namespace
id: "client", // <-- some id of user
})
}
*/
}).run("bundle.jsdos");
</script>
</body>
</html>