Sponsor Guide surfaced: hero button + ?guide=1 deep link (was buried as 5th tab)
This commit is contained in:
+16
@@ -1090,6 +1090,7 @@
|
|||||||
🧮 Try the Profit Calculator
|
🧮 Try the Profit Calculator
|
||||||
</button>
|
</button>
|
||||||
<a href="https://clickbaitpays.me/login.php" target="_blank" rel="noopener" class="hero-btn hero-btn-secondary">🔐 Log into ClickBaitPays</a>
|
<a href="https://clickbaitpays.me/login.php" target="_blank" rel="noopener" class="hero-btn hero-btn-secondary">🔐 Log into ClickBaitPays</a>
|
||||||
|
<button class="hero-btn hero-btn-secondary" id="heroGuideBtn">📖 Sponsor Guide</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Mobile-only QR for on-the-spot recruiting -->
|
<!-- Mobile-only QR for on-the-spot recruiting -->
|
||||||
@@ -2246,6 +2247,18 @@ function scrollToHero() {
|
|||||||
// Hero CTA button
|
// Hero CTA button
|
||||||
document.getElementById('heroCalcBtn').addEventListener('click', scrollToCalculator);
|
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
|
// Hero signup button — same logic as calculator signup
|
||||||
function updateHeroSignupBtn() {
|
function updateHeroSignupBtn() {
|
||||||
// #heroSignupBtn was removed in a redesign; unguarded .href crashed init()
|
// #heroSignupBtn was removed in a redesign; unguarded .href crashed init()
|
||||||
@@ -2262,6 +2275,9 @@ function updateHeroSignupBtn() {
|
|||||||
if (params.get('calc') === '1') {
|
if (params.get('calc') === '1') {
|
||||||
openCalculator();
|
openCalculator();
|
||||||
}
|
}
|
||||||
|
if (params.get('guide') === '1') {
|
||||||
|
openGuide();
|
||||||
|
}
|
||||||
updateHeroSignupBtn();
|
updateHeroSignupBtn();
|
||||||
updateSharedLinkBox();
|
updateSharedLinkBox();
|
||||||
})();
|
})();
|
||||||
|
|||||||
Reference in New Issue
Block a user