PassiveDrip moves from Games to an Earn-tab card (it is an earning site); members see it when site config passivedripLive=on, admin preview until then

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-01 10:11:19 -05:00
parent f56f363090
commit 513c713292
3 changed files with 30 additions and 4 deletions
+8 -1
View File
@@ -774,7 +774,7 @@
// member ads: a fresh text ad in the strip under the title, and a banner at the foot of the pane
IAP.adSlot('text', 'adStripTop');
if ($('adSlotPane-' + name)) IAP.adSlot('banner', 'adSlotPane-' + name);
if (name === 'earn') setEarnSub(earnSub); // refresh whichever sub-tab is active
if (name === 'earn') { setEarnSub(earnSub); loadPdCard(); } // refresh whichever sub-tab is active; PassiveDrip card (2026-10-01)
else if (vidState.token) stopVideo();
if (name === 'profile') loadLineBanner();
if (name === 'line') { buildLineJump(); loadLineage(); loadUplineMessages(); loadCoach(); loadLinkStats(); loadProspects(); }
@@ -1639,6 +1639,13 @@
launchReveal(); setInterval(launchReveal, 30000);
// came from PolHunter (iap.return cookie): one card at the top of the Overview that sends them back
// Games hub (2026-10-01): one card per game, the player's own progress where the game reports it
// PassiveDrip, our earning site: a card on the Earn tab (not a game, Marty 2026-10-01)
async function loadPdCard() {
const card = $('pdCard'); if (!card) return;
let j = null; try { j = await (await fetch('/api/my/passivedrip/card')).json(); } catch (e) {}
if (!j || !j.show) { card.hidden = true; return; }
card.hidden = false; $('pdPre').hidden = !j.preview; $('pdLine').textContent = j.line || '';
}
async function loadGames() {
const el = $('gamesGrid'); if (!el) return;
let g = null; try { g = await (await fetch('/api/my/games')).json(); } catch (e) {}