js-dos-pack/TRON.html

61 lines
1.5 KiB
HTML
Raw Normal View History

2023-11-06 22:40:14 +02:00
<!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>
2023-11-07 00:02:17 +02:00
<script src="src/js-dos.js"></script>
<link href="src/js-dos.css" rel="stylesheet">
2023-11-06 22:40:14 +02:00
</head>
<body>
<div id="jsdos"></div>
<script>
2023-11-07 00:02:17 +02:00
let bundleUrl = "games/TRON.zip";
2023-11-06 22:40:14 +02:00
let clientId = null;
2023-11-07 00:02:17 +02:00
emulators.pathPrefix = "src/";
2023-11-06 22:40:14 +02:00
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>