File size: 1,567 Bytes
59c7fd7 | 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 44 45 46 47 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Dutch Timber Windmill — procedural Three.js</title>
<style>
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #aebfca; }
#app { position: fixed; inset: 0; }
#app canvas { display: block; width: 100%; height: 100%; }
#loading {
position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
font: 300 15px/1.4 Georgia, serif; letter-spacing: 0.18em; text-transform: uppercase;
color: #f3ead9; background: linear-gradient(#7696ad, #c8b99c); z-index: 5; pointer-events: none;
transition: opacity 0.8s ease;
}
#err { display: none; position: fixed; left: 10px; bottom: 10px; z-index: 9; color: #fff;
background: rgba(120,20,20,0.9); padding: 8px 12px; font: 12px monospace; max-width: 90%; }
</style>
<script type="importmap">
{
"imports": {
"three": "./vendor/three/build/three.module.js",
"three/addons/": "./vendor/three/examples/jsm/"
}
}
</script>
</head>
<body>
<div id="app"></div>
<div id="loading">De Molen</div>
<div id="err"></div>
<script type="module" src="./main.js"></script>
<script>
(function () {
const tick = function () {
if (window.__three) {
const l = document.getElementById('loading');
if (l) { l.style.opacity = '0'; setTimeout(() => l.remove(), 900); }
} else { setTimeout(tick, 60); }
};
setTimeout(tick, 300);
})();
</script>
</body>
</html>
|