You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d40d244
Browse filesBrowse the repository at this point in the historyBrowse files
<divclass="cap"id="cap"><spanclass="k"id="capK">1 / 4</span><h3id="capH">Free audit</h3><pid="capP">We watch real sessions and find exactly where people get stuck.</p></div>
function hasGL(){try{const c=document.createElement('canvas');return !!(c.getContext('webgl')||c.getContext('experimental-webgl'))}catch(e){return false}}
@@ -124,17 +122,18 @@ function prog(){const rc=sec.getBoundingClientRect();return Math.min(1,Math.max(
124
122
function setStep(k){if(k===cur)return;cur=k;cap.classList.add('out');setTimeout(()=>{capK.textContent=(k+1)+' / 4';capH.textContent=STEPS[k][0];capP.textContent=STEPS[k][1];cap.classList.remove('out')},RM?0:220);dots.forEach((d,i)=>d.classList.toggle('on',i===k))}
125
123
function draw(){
126
124
// Camera path: from in front of gate 1, through each gate, into the light.
127
-
const startZ=narrow?19:15,stopZ=endZ+1.2;
125
+
const startZ=narrow?19:15,stopZ=endZ+13;
128
126
const P=RM?Math.min(p,.9):p;
129
-
const travel=ss(0,.92,P);
127
+
const travel=ss(0,.97,P);
130
128
const z=startZ+(stopZ-startZ)*travel;
131
129
smx+=(mx-smx)*.06;smy+=(my-smy)*.06;
132
130
const sway=Math.sin(z*.35)*.25;
133
131
cam.position.set(sway+smx*.35,2.9-smy*.18,z);
134
132
cam.lookAt(sway*.4+smx*.8,2.9-smy*.3,z-10);
135
133
cam.rotation.z+=Math.sin(z*.22)*.015;
136
134
// Which step are we on: nearest gate ahead or just passed.
137
-
let k=0;gates.forEach((g,i)=>{if(z<g.z-.5)k=i+1});
135
+
// Even quarters of the scroll, so every step gets the same time on screen.
const boxGeo = new THREE.BoxGeometry(T, H, W), edgeGeo = new THREE.EdgesGeometry(boxGeo);
@@ -105,7 +105,7 @@
105
105
} else {
106
106
if (lim(d, n, HALF) < d.a) n.a = HALF;
107
107
else { let lo = n.a, hi = HALF; for (let k = 0; k < 24; k++) { const m = (lo + hi) / 2; if (lim(d, n, m) >= d.a) hi = m; else lo = m; } n.a = Math.max(n.a, hi); }
0 commit comments