Files
os-gui/index.html

67 lines
2.4 KiB
HTML
Raw Permalink Normal View History

2025-08-09 05:25:35 +02:00
<!DOCTYPE html>
<html lang="en">
2025-08-09 17:22:25 +02:00
2025-08-09 05:25:35 +02:00
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>LAMINAX Windower</title>
<link rel="stylesheet" href="style.css" />
2025-08-09 17:22:25 +02:00
<script src="alwaysLoaded.js"></script>
2025-08-09 05:25:35 +02:00
</head>
2025-08-09 17:22:25 +02:00
2025-08-09 05:25:35 +02:00
<body>
<noscript>The Laminax OS project needs javascript. Yes even the original terminal version needs it.</noscript>
<div id="desktop"></div>
<div id="background-layer" class="background-layer-windower"></div>
<script>
2025-08-09 17:22:25 +02:00
function init() {
const scripts = [
'script.js',
'shell.js',
'immersion.js'
];
try {
setDisplayURL("/starting")
} catch {}
scripts.forEach(src => {
const script = document.createElement('script');
script.src = src;
document.body.appendChild(script);
if (src === 'script.js') {
script.onload = () => {
let shouldUpdateLoaderSize = true;
const desktopRect = document.getElementById("desktop").getBoundingClientRect();
// Fake boot screen
const loaderWind = createWindow("loader.html", {
headerless: true,
resizable: false,
indent: false
});
transformWindow(loaderWind.windID, desktopRect.width, desktopRect.height, 0, 0);
window.onresize = () => {
if (shouldUpdateLoaderSize) {
transformWindow(loaderWind.windID, desktopRect.width, desktopRect.height, 0, 0);
}
};
setTimeout(() => {
shell.init();
shouldUpdateLoaderSize = false;
try {
setDisplayURL("/localhost")
} catch {}
killWind(loaderWind.windID); // Close the fake boot screen after 8 seconds
}, 8000);
};
}
});
}
window.document.addEventListener("DOMContentLoaded", init);
2025-08-09 05:25:35 +02:00
</script>
</body>
2025-08-09 17:22:25 +02:00
</html>