Pie in the Sky: animated 3D globe for Pie Control, with a night view
An orthographic Earth on a 2D canvas (sticker look, plus a night view with stars, city lights and terminator) showing a capped sample of each crust's pies, laser links, pie-dish beams and launches. One rAF loop only while open (30 fps cap, DPR <= 2, idle while hidden), nothing left behind once closed. Land comes from LANDS_LL. The world map only gets a pink pie-dish badge at cities with a dish, behind one null check per visible city when there are none.
This commit is contained in:
parent
c860a128e4
commit
d3174600e7
13 changed files with 338 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
// Keyboard focus moves into the modal, so Enter or Space can't keep pressing a hidden button behind it.
|
||||
// The link check on phones sits above the tab bar and is not modal, so the tabs stay usable.
|
||||
function openModal(html,cls=''){HOOKS.modal?.(true);$('modal').className=cls;$('modalCard').setAttribute('aria-modal',cls==='link-check'&&isPhone()?'false':'true');if($('modal').hidden)markLayer();$('modalCard').innerHTML=html;$('modal').hidden=false;const a=document.activeElement;if(a&&a!==document.body&&!a.closest('#modal')){a.blur();const m=$('modalCard');m.tabIndex=-1;m.focus({preventScroll:true});}}
|
||||
function closeModal(){if(!$('modal').hidden)markLayer();$('modal').hidden=true;UI.pending=null;HOOKS.modal?.(false);}
|
||||
function closeModal(){if(!$('modal').hidden)markLayer();pieGlobeClose();$('modal').hidden=true;UI.pending=null;HOOKS.modal?.(false);}
|
||||
const NETWORK_NAMES=[
|
||||
'Packet Pals','Shinternet','Post, Telegraph & Tubes','Peering Pressure','Best Effort Telecom',
|
||||
'Mostly Online','Buffering & Sons','Lord of the Pings','The Ping Dynasty',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue