Spooky Doors launch pack (IAP side): door packs + Golden Doors, Promo tools card, season from Oct 4

- Visit packs get a placement: 'all' (as before), 'doors' (Behind Spooky Doors, doorPackCost 4/door) or
  'golden' (Golden Spooky Door, goldenDoorCost 6/door). campaigns.placement column (alterSafe) + JSON store.
- Doors serve golden packs first, then door packs, then the existing chain; each pack at most once per
  player per Central day. Door-only packs never reach the Earn tab, refuels or the PassiveDrip listing
  until rates.sdSeasonEnd ('2026-11-01'); from then on they behave as 'all'.
- Door payloads: credits = per-door price actually charged (3/4/6); Golden Doors add golden: true and
  bonus: goldenBonusCandy (2) to /api/door/open, done, callback and receipt. Gold variant of /door.
- Campaign list: Spooky Doors / Golden Door chip, doors opened + unique players, Buy more doors at the
  door price. Composer: placement choice with live cost. Admin rates labels + house pack placement.
- Promo tools: Spooky Doors card (spookydoors.com/r/<username>, copy, share image, two posts) on the same
  season window as the Games card (seasonState helper).
- Season start moved up to 2026-10-04 (Games card + promo card + chatbot).
- qa/door.mjs covers all of the above.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-02 15:55:19 -05:00
parent 9809953ae0
commit a5a991d024
13 changed files with 228 additions and 41 deletions
+19 -2
View File
@@ -571,6 +571,12 @@
</div>
<p class="small muted" id="cSoloHint" hidden></p>
<div id="cVisitsRow" hidden>
<div id="cVisitPlaceRow" style="margin:0 0 10px">
<span class="small muted" style="display:block;margin-bottom:4px">Where your visits run</span>
<label class="small" style="display:block;margin:2px 0"><input type="radio" name="cVisitPlace" value="all" checked style="width:auto"> <b>Everywhere</b> <span class="muted" data-vpcost="all"></span>: the Earn tab, Drip Runner refuels and Spooky Doors</label>
<label class="small sd-place" style="display:block;margin:2px 0"><input type="radio" name="cVisitPlace" value="doors" style="width:auto"> <b>Behind Spooky Doors</b> <span class="muted" data-vpcost="doors"></span>: your page is a door in our Halloween game, served before ordinary visits</label>
<label class="small sd-place" style="display:block;margin:2px 0"><input type="radio" name="cVisitPlace" value="golden" style="width:auto"> <b>Golden Spooky Door</b> <span class="muted" data-vpcost="golden"></span>: served before every other door, and the player gets bonus candy</label>
</div>
<p><input id="cVisitTitle" maxlength="80" placeholder="Headline (what members see before visiting)" style="width:100%"></p>
<p><input id="cVisitCount" type="number" min="20" placeholder="How many verified visits?" style="width:100%"></p>
<p class="small muted" id="cVisitHint"></p>
@@ -770,6 +776,17 @@
<button class="chip-t" data-promo="videos" type="button" role="tab">Videos</button>
<button class="chip-t" data-promo="viral" type="button" role="tab">Viral links</button>
<button class="chip-t" data-promo="polhunter" type="button" role="tab">🎯 PolHunter</button>
<button class="chip-t" data-promo="spookydoors" type="button" role="tab" hidden>🎃 Spooky Doors</button>
</div>
<div class="card promo-sec" id="promo-spookydoors" hidden>
<div class="card-head"><h3>🎃 Spooky Doors</h3><span class="sub" id="sdpSub">our Halloween game, limited time, ends Oct 31</span></div>
<p class="muted small" style="margin:0 0 10px">Trick or treat. Players walk a spooky street, dodge black cats and bats, and knock on doors, and every door is a short visit to a member&#39;s page or ad. Your link carries your username, so anyone who joins InstantAdPay through it is tagged to you, the same as your invite link.</p>
<div class="promo-strip" style="padding:0 0 12px"><div><span class="eyebrow" style="margin:0 0 4px">Your Spooky Doors link</span><div class="mono small" id="sdpLink" style="overflow-wrap:anywhere">…</div></div><span><button class="btn small" id="sdpCopy" type="button">Copy link</button> <a class="btn small sec" href="/api/my/spookydoors">Play</a></span></div>
<div class="promo-block"><div class="pb-head"><span class="lab">Share image</span> <span class="muted small">1200×630, for posts and link previews</span></div>
<img id="sdpImg" alt="Spooky Doors" style="max-width:100%;height:auto;border-radius:10px;display:block;margin:8px 0">
<div class="pb-actions"><a class="btn small sec" id="sdpImgOpen" href="#" target="_blank" rel="noopener">Open image</a> <button class="btn small sec" id="sdpImgCopy" type="button">Copy image URL</button></div></div>
<div class="card-head" style="margin-top:14px"><h3>Two short posts</h3><span class="sub">your link is already in them</span></div>
<div id="sdpPosts"></div>
</div>
<div class="card promo-sec" id="promo-polhunter" hidden>
<div class="card-head"><h3>PolHunter: your feeder program</h3><span class="sub">free to play, pays in POL, every sign-up lands on your line</span></div>
@@ -1111,8 +1128,8 @@
</div>
<script src="/assets/common.js?v=20260929b"></script><script src="/assets/welcome.js?v=20260923b"></script>
<script src="/assets/wallet.js?v=20260911a"></script>
<script src="/assets/promo.js?v=20260929c"></script>
<script src="/assets/my.js?v=20261002sd"></script>
<script src="/assets/promo.js?v=20261002sd"></script>
<script src="/assets/my.js?v=20261002sdp"></script>
<script src="/assets/chat.js?v=20260907l"></script>
</body>
</html>