← Commit history

Publish 1.0.16

John Lauer ·60b8ae0334 · ·parent 58c31f7
6 files changed +37−11
README.md+1
@@ -58,6 +58,7 @@ state is rolled at every epoch. | tlead | 1.5 | seconds before the epoch the dark lobe fades to teal | | ov | 1 | 0 makes the cheat its own act after the steer | | intro | 1 | 0 skips the teal logo intro |+| hint | 0 | 1 shows the small click-to-zoom pill in armed contexts; off by default for purity; also flippable live by postMessage | | margin | 0 | percent of the container left empty around the mark (80 = small and centered, 20 = nearly fills); zoom-out caps at 40% past the margined framing | | interact | 0 | 1 arms click-to-zoom (previews and demos, never load screens) | 
SKILL.md+4
@@ -104,6 +104,10 @@ readbacks for the fit measurement); the loader is that lab distilled.  - Inert by default: a load screen never eats input. `?interact=1` arms   click-to-capture (teal ring + glow); click-away or blur releases.+- The "click to zoom" hint pill is OFF BY DEFAULT even when armed:+  production wants purity, and the teal glow already signals the armed+  state. Show it with `?hint=1`, or flip it live in armed contexts with+  `postMessage({adomLoader:{hint:true}})` (false hides it again). - Zoom to cursor: the world point under the pointer is re-solved every notch   so it stays pinned (measured drift 0.002 world units over six notches). - Springiness: an inertia integral (notch deposits `vel += r*0.085`, consumed
loader.html+10−4
@@ -398,6 +398,10 @@ requestAnimationFrame(frame);    zoom; click is released on window blur (clicking outside the iframe). */ if (Q.get('interact')==='1' || window.__ADOM_LOADER_INTERACT){   var live=false;+  /* The hint pill is OFF by default even when armed: production wants purity.+     ?hint=1 shows it, and armed contexts can flip it live by postMessage. The+     teal edge glow always communicates the armed state either way. */+  var HINTON = P('hint',0)>=1;   var edge=document.createElement('div');   edge.style.cssText='position:fixed;inset:0;pointer-events:none;opacity:0;'+     'transition:opacity .18s ease;border:1px solid #00b8b0;'+@@ -410,19 +414,21 @@ if (Q.get('interact')==='1' || window.__ADOM_LOADER_INTERACT){     'color:#8b949e;pointer-events:none;opacity:0;transition:opacity .2s';   hint.textContent='click to zoom';   document.body.appendChild(hint);+  function hintShow(o){ hint.style.opacity=(HINTON&&o)?'1':'0'; }   document.body.style.cursor='pointer';-  document.addEventListener('mouseenter',function(){ if(!live) hint.style.opacity='1'; });-  document.addEventListener('mouseleave',function(){ hint.style.opacity='0'; });+  document.addEventListener('mouseenter',function(){ if(!live) hintShow(true); });+  document.addEventListener('mouseleave',function(){ hintShow(false); });   document.addEventListener('pointerdown',function(){     live=true; edge.style.opacity='1'; document.body.style.cursor='default';-    hint.textContent='scroll to zoom'; hint.style.color='#00b8b0'; hint.style.opacity='1';-    setTimeout(function(){ hint.style.opacity='0'; },1400);+    hint.textContent='scroll to zoom'; hint.style.color='#00b8b0'; hintShow(true);+    setTimeout(function(){ hintShow(false); },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.hint!=='undefined'){ HINTON=!!d.hint; if(!HINTON) hint.style.opacity='0'; }     if(typeof d.margin==='number'){       MARGIN=Math.max(0,Math.min(90,d.margin));       HOME=R/(1-MARGIN/100);
package.json+1−1
@@ -2,7 +2,7 @@   "slug": "orbital-lab",   "title": "Orbital Lab",   "type": "app",-  "version": "1.0.15",+  "version": "1.0.16",   "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.15",+  "version": "1.0.16",   "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+20−5
@@ -2634,6 +2634,9 @@ window.__lab = { push, zeros, HARMONICS, setAnim:v=>{animate=v;} };     <button data-m="0">0%</button>     <button data-m="40">40%</button>     <button data-m="80">80%</button>+    <span style="margin-left:10px">hint</span>+    <button data-h="1">on</button>+    <button data-h="0">off</button>   </div>   <div id="pbox"><iframe class="prev" srcdoc="&lt;!DOCTYPE html&gt; &lt;html lang=&quot;en&quot;&gt;@@ -3035,6 +3038,10 @@ requestAnimationFrame(frame);    zoom; click is released on window blur (clicking outside the iframe). */ if (Q.get(&#x27;interact&#x27;)===&#x27;1&#x27; || window.__ADOM_LOADER_INTERACT){   var live=false;+  /* The hint pill is OFF by default even when armed: production wants purity.+     ?hint=1 shows it, and armed contexts can flip it live by postMessage. The+     teal edge glow always communicates the armed state either way. */+  var HINTON = P(&#x27;hint&#x27;,0)&gt;=1;   var edge=document.createElement(&#x27;div&#x27;);   edge.style.cssText=&#x27;position:fixed;inset:0;pointer-events:none;opacity:0;&#x27;+     &#x27;transition:opacity .18s ease;border:1px solid #00b8b0;&#x27;+@@ -3047,19 +3054,21 @@ if (Q.get(&#x27;interact&#x27;)===&#x27;1&#x27; || window.__ADOM_LOADER_INTERACT     &#x27;color:#8b949e;pointer-events:none;opacity:0;transition:opacity .2s&#x27;;   hint.textContent=&#x27;click to zoom&#x27;;   document.body.appendChild(hint);+  function hintShow(o){ hint.style.opacity=(HINTON&amp;&amp;o)?&#x27;1&#x27;:&#x27;0&#x27;; }   document.body.style.cursor=&#x27;pointer&#x27;;-  document.addEventListener(&#x27;mouseenter&#x27;,function(){ if(!live) hint.style.opacity=&#x27;1&#x27;; });-  document.addEventListener(&#x27;mouseleave&#x27;,function(){ hint.style.opacity=&#x27;0&#x27;; });+  document.addEventListener(&#x27;mouseenter&#x27;,function(){ if(!live) hintShow(true); });+  document.addEventListener(&#x27;mouseleave&#x27;,function(){ hintShow(false); });   document.addEventListener(&#x27;pointerdown&#x27;,function(){     live=true; edge.style.opacity=&#x27;1&#x27;; document.body.style.cursor=&#x27;default&#x27;;-    hint.textContent=&#x27;scroll to zoom&#x27;; hint.style.color=&#x27;#00b8b0&#x27;; hint.style.opacity=&#x27;1&#x27;;-    setTimeout(function(){ hint.style.opacity=&#x27;0&#x27;; },1400);+    hint.textContent=&#x27;scroll to zoom&#x27;; hint.style.color=&#x27;#00b8b0&#x27;; hintShow(true);+    setTimeout(function(){ hintShow(false); },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(&#x27;message&#x27;,function(e){     var d=e.data&amp;&amp;e.data.adomLoader; if(!d) return;+    if(typeof d.hint!==&#x27;undefined&#x27;){ HINTON=!!d.hint; if(!HINTON) hint.style.opacity=&#x27;0&#x27;; }     if(typeof d.margin===&#x27;number&#x27;){       MARGIN=Math.max(0,Math.min(90,d.margin));       HOME=R/(1-MARGIN/100);@@ -3103,6 +3112,11 @@ if (Q.get(&#x27;interact&#x27;)===&#x27;1&#x27; || window.__ADOM_LOADER_INTERACT         ifr.contentWindow.postMessage({adomLoader:{margin:parseFloat(b.getAttribute('data-m'))}},'*');       });     });+    document.querySelectorAll('.rig-acts button[data-h]').forEach(function(b){+      b.addEventListener('click',function(){+        ifr.contentWindow.postMessage({adomLoader:{hint:b.getAttribute('data-h')==='1'}},'*');+      });+    });     grip.addEventListener('pointerdown',function(e){       e.preventDefault(); grip.setPointerCapture(e.pointerId);       box.classList.add('notrans');@@ -3121,7 +3135,7 @@ if (Q.get(&#x27;interact&#x27;)===&#x27;1&#x27; || window.__ADOM_LOADER_INTERACT   </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+     raw WebGL, no Babylon, no CDN, no fonts, no fetch, about 26 KB. It boots instantly, which      is the point: it plays while your webview's real content is still loading. Under 10 KB      gzipped, zero requests, one draw call over 12,800 vertex-shader-displaced triangles, and      about 0.06 ms of JS per frame, so the CPU stays asleep. The wheel is tuned against the@@ -3223,6 +3237,7 @@ if (Q.get(&#x27;interact&#x27;)===&#x27;1&#x27; || window.__ADOM_LOADER_INTERACT     <tr><td>ov</td><td>1</td><td>0 makes the cheat its own act after the steer</td></tr>     <tr><td>intro</td><td>1</td><td>0 skips the teal logo intro</td></tr>     <tr><td>interact</td><td>0</td><td>1 arms click-to-zoom (for previews and demos, never load screens)</td></tr>+    <tr><td>hint</td><td>0</td><td>1 shows the small "click to zoom" pill in armed contexts. Off by default: production stays pure. Armed contexts can also flip it live by postMessage</td></tr>     <tr><td>margin</td><td>0</td><td>percent of the container left empty around the mark: 80 sits it small in the middle of a big window, 20 nearly fills. Zoom-in still brings it to the screen; zoom-out caps at 40% past the margined framing</td></tr>   </table>   <h3>The three tuned cuts</h3>