summaryrefslogtreecommitdiff
path: root/website-src/index.html
diff options
context:
space:
mode:
authorNathan Lee <me@nwlee.tech>2026-09-26 16:22:04 -0500
committerNathan Lee <me@nwlee.tech>2026-09-26 16:22:04 -0500
commit9660366219c28fc827c24ce7b428ad7e2534ead0 (patch)
treeb4ca2c6d46bc4f0ba46961bc903c130b09b03934 /website-src/index.html
parent548905a86473101325540446f35ffda8acd0c3bb (diff)
scaffold rest of website
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