feat: Update model and configuration for improved loading and kitchen color adjustments
continuous-integration/drone/push Build is passing

This commit is contained in:
martin.fencl
2026-10-22 02:12:08 +02:00
parent 00810a0d17
commit 0fd866506e
6 changed files with 27 additions and 16 deletions
+5 -1
View File
@@ -324,7 +324,6 @@
<script type="module" src="./js/bootstrap.js?v=20261022b"></script>
<div id="webStatus" role="status">Načítání modelu…</div>
<button id="projectToggle" class="btn" type="button">Projekt a podklady</button>
<dialog id="projectDialog" aria-labelledby="projectTitle">
@@ -343,6 +342,11 @@
</dialog>
<svg id="surveyOverlay" aria-label="Body výškopisu" style="display:none"></svg>
<noscript><div class="web-fatal">Pro 3D model povolte JavaScript. <a href="./models/dum.glb">Stáhnout GLB</a></div></noscript>
<script>
// Firefox and Safari accept an import map only before the first module starts loading, so the map
// for Three.js is added here and bootstrap.js is requested only afterwards.
fetch('./data/app-config.json',{cache:'no-cache'}).then(r=>r.json()).then(c=>{const m=document.createElement('script');m.type='importmap';m.textContent=JSON.stringify({imports:{three:new URL(c.threeModule,location.href).href}});document.head.appendChild(m);}).catch(()=>{}).finally(()=>{const s=document.createElement('script');s.type='module';s.src='./js/bootstrap.js?v=20261022c';document.body.appendChild(s);});
</script>
</body>
</html>