Angle squeeze pages: quieter header, legal-only footer, hold proof toasts until the hook video ends

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-01 09:26:25 -05:00
parent 7bd72e7de7
commit 71ba633ac5
2 changed files with 20 additions and 1 deletions
+7 -1
View File
@@ -25,8 +25,14 @@
return stack;
}
const queue=[];let showing=false;
function enqueue(p){if(queue.length>=TOAST_MAX_QUEUE)return;queue.push(p);if(!showing)showNext()}
// On an angle squeeze page (join.js sets data-squeeze) the proof toasts wait
// until the hook video has ended, so they land as the visitor is deciding
// rather than competing with the video.
function held(){return document.documentElement.hasAttribute('data-squeeze')}
document.addEventListener('rmc:hookended',()=>{if(!showing)showNext()});
function enqueue(p){if(queue.length>=TOAST_MAX_QUEUE)return;queue.push(p);if(!showing&&!held())showNext()}
function showNext(){
if(held()){showing=false;return}
const p=queue.shift();
if(!p){showing=false;return}
showing=true;