This repository has been archived by the owner on Jan 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (43 loc) · 1.48 KB
/
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
42
43
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="shortcut icon" href="static/favicon.ico"/>
<script src="static/js-dos.js"></script>
</head>
<body>
<style>
body {
background-image: url('static/bliss.jpg');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
#Progress {
width: 100%;
background-color: grey;
}
#Bar {
width: 0%;
height: 30px;
background-color: green;
}
canvas {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
}
</style>
<title>WIN95</title>
<div id="Progress">
<div id="Bar"></div>
</div>
<canvas></canvas>
<script>
Dos(document.getElementsByTagName("canvas")[0], { autolock: true, onprogress: (stage, total, loaded) => {document.getElementById("Bar").style.width = Math.floor(loaded * 100 / total) + "%"}}).ready((fs, main) => {fs.extract("static/win95.zip").then(() => {main(["-c", "imgmount d c.img", "-c", "boot c.img"]).then(ci => ci.simulateKeyPress(32));});});
</script>
</body>
</html>