From ab6452f322500ead4e4600f8084cd558fca021af Mon Sep 17 00:00:00 2001 From: "Claude (via Marty)" Date: Thu, 30 Jul 2026 23:27:10 +0000 Subject: [PATCH] Sponsor Guide surfaced: hero button + ?guide=1 deep link (was buried as 5th tab) --- index.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/index.html b/index.html index dbb6ed4..d64f082 100644 --- a/index.html +++ b/index.html @@ -1090,6 +1090,7 @@ 🧮 Try the Profit Calculator 🔐 Log into ClickBaitPays + @@ -2246,6 +2247,18 @@ function scrollToHero() { // Hero CTA button document.getElementById('heroCalcBtn').addEventListener('click', scrollToCalculator); +// Sponsor Guide straight from the hero (it was buried as the 5th tab — +// Marty 2026-07-30). Also deep-linkable via ?guide=1 for the Telegram pin. +function openGuide() { + openCalculator(); + setTimeout(() => { + const btn = document.querySelector('.tab-btn[data-tab="guide"]'); + if (btn) btn.click(); + document.querySelector('.tabs').scrollIntoView({ behavior: 'smooth', block: 'start' }); + }, 120); +} +document.getElementById('heroGuideBtn').addEventListener('click', openGuide); + // Hero signup button — same logic as calculator signup function updateHeroSignupBtn() { // #heroSignupBtn was removed in a redesign; unguarded .href crashed init() @@ -2262,6 +2275,9 @@ function updateHeroSignupBtn() { if (params.get('calc') === '1') { openCalculator(); } + if (params.get('guide') === '1') { + openGuide(); + } updateHeroSignupBtn(); updateSharedLinkBox(); })();