js-dos-pack/tim.html
Eliezer Croitoru 835a1f9c89 12
2024-11-08 22:04:45 +02:00

61 lines
1.5 KiB
HTML
Executable File

<!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/tim.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>