10
This commit is contained in:
parent
1bd911497f
commit
46e602c273
Binary file not shown.
@ -1,60 +0,0 @@
|
||||
<!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 {
|
||||
background: black;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
* {
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
|
||||
-ms-touch-action: none;
|
||||
-ms-content-zooming: none;
|
||||
touch-action: none;
|
||||
}
|
||||
</style>
|
||||
<script src="src/js-dos.js"></script>
|
||||
<link href="src/js-dos.css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="jsdos"></div>
|
||||
<script>
|
||||
let bundleUrl = "games/tamahugo.zip";
|
||||
let clientId = null;
|
||||
emulators.pathPrefix = "src/";
|
||||
Dos(document.getElementById("jsdos"), {
|
||||
hardware: window.hardware,
|
||||
withNetworkingApi: false,
|
||||
withExperimentalApi: true,
|
||||
clientId: (userGesture) => {
|
||||
if (!userGesture) {
|
||||
return Promise.resolve(clientId);
|
||||
}
|
||||
|
||||
clientId = {
|
||||
namespace: "test",
|
||||
id: "ngtech1ltd@gmail.com",
|
||||
};
|
||||
|
||||
return Promise.resolve(clientId);
|
||||
}
|
||||
}).run(bundleUrl);
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user