by adom
The Adom logomark is a hydrogen 2p orbital: psi = (2p_x + 2p_y)/sqrt(2). A live Babylon.js lab that proves it (all 16 real spherical harmonics, the alignment cheat, and the directed loop), plus loader.html: the same animation as one dependency-free WebGL file for webview load screens.
← Commit history
Publish 1.0.15
5 files changed
+93−5
SKILL.md+5@@ -53,6 +53,11 @@ match and the epoch glide stay exact at every value. - Content page (about page, side panel): `loader.html?margin=20` , nearly fills. - Load screen default: `loader.html` (margin 0, the classic framing). +Armed contexts (interact=1 or the wiki preview) also accept LIVE margin+changes by postMessage, no reload: post+`{adomLoader:{margin:N}}` at the loader's window and the spring carries the+camera to its new home, animated. Load screens never install this listener.+ Zoom contract at any margin: zoom IN can bring the object right up to the screen; zoom OUT is capped at 40% past the margined epoch framing (radius <= home x 1.4); the spring always breathes back to the margined home,
loader.html+11@@ -418,6 +418,17 @@ if (Q.get('interact')==='1' || window.__ADOM_LOADER_INTERACT){ hint.textContent='scroll to zoom'; hint.style.color='#00b8b0'; hint.style.opacity='1'; setTimeout(function(){ hint.style.opacity='0'; },1400); });+ /* Armed contexts accept live control: {adomLoader:{margin:N}} retargets the+ framing and the spring CARRIES the camera to its new home, animated. Real+ load screens never install this listener. */+ window.addEventListener('message',function(e){+ var d=e.data&&e.data.adomLoader; if(!d) return;+ if(typeof d.margin==='number'){+ MARGIN=Math.max(0,Math.min(90,d.margin));+ HOME=R/(1-MARGIN/100);+ ZF=Math.max(100,HOME*3);+ }+ }); window.addEventListener('blur',function(){ live=false; edge.style.opacity='0'; document.body.style.cursor='pointer'; hint.textContent='click to zoom'; hint.style.color='#8b949e'; }); document.addEventListener('wheel',function(e){
package.json+1−1@@ -2,7 +2,7 @@ "slug": "orbital-lab", "title": "Orbital Lab", "type": "app",- "version": "1.0.14",+ "version": "1.0.15", "description": "The Adom logomark is a hydrogen 2p orbital: psi = (2p_x + 2p_y)/sqrt(2). A live Babylon.js lab that proves it (all 16 real spherical harmonics, the alignment cheat, and the directed loop), plus loader.html: the same animation as one dependency-free WebGL file for webview load screens.", "tags": [ "brand",
page.json+1−1@@ -2,7 +2,7 @@ "slug": "orbital-lab", "title": "Orbital Lab", "type": "app",- "version": "1.0.14",+ "version": "1.0.15", "description": "The Adom logomark is a hydrogen 2p orbital: psi = (2p_x + 2p_y)/sqrt(2). A live Babylon.js lab that proves it (all 16 real spherical harmonics, the alignment cheat, and the directed loop), plus loader.html: the same animation as one dependency-free WebGL file for webview load screens.", "tags": [ "brand",
readme.html+75−3@@ -2605,10 +2605,37 @@ window.__lab = { push, zeros, HARMONICS, setAnim:v=>{animate=v;} }; .edocs th{color:var(--text);font-weight:500} .edocs .prev{width:min(760px,100%);aspect-ratio:16/10;border:1px solid var(--border); border-radius:10px;background:#0d1117;display:block;margin:6px 0}+ .edocs .rig-acts{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:10px 0 10px}+ .edocs .rig-acts span{font-family:'JetBrains Mono','DM Mono',monospace;font-size:11px;+ color:var(--text-3);letter-spacing:.05em;margin-right:2px}+ .edocs .rig-acts button{font-family:'Satoshi',sans-serif;font-weight:500;font-size:12.5px;+ padding:7px 13px;border-radius:999px;cursor:pointer;background:var(--elevated);+ border:1px solid var(--border);color:var(--text)}+ .edocs .rig-acts button:hover{border-color:var(--accent)}+ #pbox{position:relative;overflow:hidden;width:min(760px,100%);height:475px;min-width:140px;+ min-height:90px;border:1px dashed var(--border);border-radius:10px;background:#0d1117;+ transition:width .35s ease,height .35s ease}+ #pbox.notrans{transition:none}+ #pbox .prev{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;border:0;margin:0}+ #pgrip{position:absolute;right:-2px;bottom:-2px;width:22px;height:22px;cursor:nwse-resize;z-index:5;+ border-right:3px solid var(--accent);border-bottom:3px solid var(--accent);border-radius:0 0 8px 0}+ #prd{font-family:'JetBrains Mono','DM Mono',monospace;font-size:11.5px;color:var(--accent);margin-top:8px} </style> <div class="edocs"> <h2>The live viewer</h2>- <iframe class="prev" srcdoc="<!DOCTYPE html>+ <div class="rig-acts">+ <span>size</span>+ <button data-s="300,620">Tall</button>+ <button data-s="1100,300">Wide</button>+ <button data-s="420,420">Square</button>+ <button data-s="180,140">Tiny</button>+ <button data-s="760,475">Reset</button>+ <span style="margin-left:10px">margin</span>+ <button data-m="0">0%</button>+ <button data-m="40">40%</button>+ <button data-m="80">80%</button>+ </div>+ <div id="pbox"><iframe class="prev" srcdoc="<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8">@@ -3028,6 +3055,17 @@ if (Q.get('interact')==='1' || window.__ADOM_LOADER_INTERACT hint.textContent='scroll to zoom'; hint.style.color='#00b8b0'; hint.style.opacity='1'; setTimeout(function(){ hint.style.opacity='0'; },1400); });+ /* Armed contexts accept live control: {adomLoader:{margin:N}} retargets the+ framing and the spring CARRIES the camera to its new home, animated. Real+ load screens never install this listener. */+ window.addEventListener('message',function(e){+ var d=e.data&&e.data.adomLoader; if(!d) return;+ if(typeof d.margin==='number'){+ MARGIN=Math.max(0,Math.min(90,d.margin));+ HOME=R/(1-MARGIN/100);+ ZF=Math.max(100,HOME*3);+ }+ }); window.addEventListener('blur',function(){ live=false; edge.style.opacity='0'; document.body.style.cursor='pointer'; hint.textContent='click to zoom'; hint.style.color='#8b949e'; }); document.addEventListener('wheel',function(e){@@ -3042,11 +3080,45 @@ if (Q.get('interact')==='1' || window.__ADOM_LOADER_INTERACT </script> </body> </html>-"></iframe>+"></iframe><div id="pgrip" title="drag to resize"></div></div>+ <div id="prd">container: …</div> <p>This IS loader.html, inlined, running the <b>john fav</b> cut: the final output, before any of the explanation. Click it once and your wheel zooms toward the cursor with the lab's exact springy feel; click anywhere else to give the wheel back to the- page. Everything below explains how to ship it.</p>+ page. Drag the teal corner or use the presets, the loader fills whatever you give it;+ the margin buttons retarget the framing live and the spring carries the camera to its+ new home. Everything below explains how to ship it.</p>+ <script>+ (function(){+ var box=document.getElementById('pbox'), grip=document.getElementById('pgrip'),+ rd=document.getElementById('prd'), ifr=box.querySelector('iframe'), drag=null;+ document.querySelectorAll('.rig-acts button[data-s]').forEach(function(b){+ b.addEventListener('click',function(){+ var v=b.getAttribute('data-s').split(',');+ box.style.width=v[0]+'px'; box.style.height=v[1]+'px';+ });+ });+ document.querySelectorAll('.rig-acts button[data-m]').forEach(function(b){+ b.addEventListener('click',function(){+ ifr.contentWindow.postMessage({adomLoader:{margin:parseFloat(b.getAttribute('data-m'))}},'*');+ });+ });+ grip.addEventListener('pointerdown',function(e){+ e.preventDefault(); grip.setPointerCapture(e.pointerId);+ box.classList.add('notrans');+ drag={x:e.clientX,y:e.clientY,w:box.clientWidth,h:box.clientHeight};+ });+ grip.addEventListener('pointermove',function(e){+ if(!drag) return;+ box.style.width=Math.max(140,drag.w+e.clientX-drag.x)+'px';+ box.style.height=Math.max(90,drag.h+e.clientY-drag.y)+'px';+ });+ grip.addEventListener('pointerup',function(){ drag=null; box.classList.remove('notrans'); });+ setInterval(function(){+ rd.textContent='container: '+box.clientWidth+'x'+box.clientHeight;+ },300);+ })();+ </script> <h2 style="margin-top:30px">Ship it as a webview loader</h2> <p><b>loader.html</b> on this page is the animation above distilled to ONE dependency-free file: raw WebGL, no Babylon, no CDN, no fonts, no fetch, about 25 KB. It boots instantly, which