New code structure
Added profiles
Fixed skin pulldown
Added rain images
This commit is contained in:
fraxle
2026-05-13 15:16:45 +01:00
parent 8d1d691942
commit e18e128a34
12 changed files with 2935 additions and 2668 deletions
+17
View File
@@ -0,0 +1,17 @@
// ════════════════════════════════════════════════════════════════════════
// main.js — Entry point. Imports the app and mounts it into the page.
//
// This is the file loaded by index.html as <script type="module">.
// It does nothing except wire the root component to the DOM node.
//
// If nothing appears on the page, check that:
// 1. index.html contains <div id="root"></div>
// 2. index.html loads THIS file as <script type="module" src="...">
// 3. The browser console (F12) shows no import errors
// ════════════════════════════════════════════════════════════════════════
import { h, render } from '../vendor/preact.js';
import { UTCIForecast } from './app.js';
const rootEl = document.getElementById('root');
if (rootEl) render(h(UTCIForecast, null), rootEl);