Scope weather effects
Scope objects
Scope selection changes
This commit is contained in:
fraxle
2026-06-07 01:44:53 +01:00
parent f22833ee63
commit 1459740d96
7 changed files with 411 additions and 72 deletions
+3 -1
View File
@@ -14,7 +14,7 @@
<div id="cell"></div>
<script type="module">
import { h, render } from './assets/vendor/preact.js';
import { ScopeReticle } from './assets/js/components.js';
const { ScopeReticle } = await import('./assets/js/components.js?v=' + Date.now());
const q = new URLSearchParams(location.search);
const n = (k, d) => { const v = q.get(k); return v == null ? d : Number(v); };
@@ -30,6 +30,8 @@
activeEvent: storm ? { id: 'storm' } : null,
cc: n('cc', 0), ccLow: n('ccLow', 0), ccMid: n('ccMid', 0), ccHigh: n('ccHigh', 0),
precip: n('precip', 0), snow: n('snow', 0), visKm: n('vis', 30),
env: q.get('env') || 'open',
wind: n('wind', 0), gust: n('gust', 0), wd: q.get('wd') != null ? n('wd', 0) : null,
}), document.getElementById('cell'));
</script>
</body>