2.9
Scope weather effects Scope objects Scope selection changes
This commit is contained in:
+3
-1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user