summaryrefslogtreecommitdiff
path: root/website-src/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'website-src/index.html')
-rw-r--r--website-src/index.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/website-src/index.html b/website-src/index.html
new file mode 100644
index 0000000..7fa24ee
--- /dev/null
+++ b/website-src/index.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <title>Website</title>
+ <link rel="stylesheet" href="style.css" />
+ <script type="module" src="../website-emu/src/dev.js"></script>
+ <script type="module" defer>
+ import init, { boot } from './website_emu.js';
+ async function run() {
+ await init();
+ const response = await fetch('/vmwebkrnl.bin');
+ if (!response.ok) {
+ console.log("OS image not present, not booting.");
+ return;
+ }
+
+ const vmwebkrnl = new Uint8Array(await response.arrayBuffer());
+ const initrd = new Uint8Array(8);
+ const dram = new Uint8Array(1024 * 1024);
+
+ boot(vmwebkrnl, initrd, dram);
+ }
+ run();
+ </script>
+</head>
+<body>
+
+</body>
+</html> \ No newline at end of file