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:
+7
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user