Create win31_games.html

master
zmv7 2020-10-14 09:09:13 +05:00 committed by GitHub
parent 6845e2f142
commit a12a9de445
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 43 additions and 0 deletions

43
win31_games.html Normal file
View File

@ -0,0 +1,43 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Win3.1 with games</title>
<script src="https://js-dos.com/6.22/current/js-dos.js"></script>
<style>
html, body, canvas, .dosbox-container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<canvas id="jsdos"></canvas>
<button style="position: absolute; right: 1em; top: 1em;" onclick="ci.fullscreen()">FS</button>
<script>
Dos(document.getElementById("jsdos"), {
wdosboxUrl: "https://js-dos.com/6.22/current/wdosbox.js",
cycles: "max",
autolock: true,
}).ready(function (fs, main) {
fs.extract("https://dl.dropbox.com/s/9ymyjrzqysmmg4a/win3_fulltilt.zip").then(function () {
fs.createFile("dosbox.conf", `
[dosbox]
machine=svga_et4000
memsize=64
`);
main(["-conf", "dosbox.conf", "-c", "cd windows", "-c", "win"]).then(function (ci) {
window.ci = ci;
});
});
});
</script>
</body>
</html>