Login ad: frame the sponsor's page inside the gate under the timer bar (open-in-tab link, dashboard button), new-tab fallback only when the site refuses framing (Brian Holland: no timer, no way out on the ad tab)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-09 09:16:51 -05:00
parent efb6020e40
commit 7d20cd2c35
3 changed files with 52 additions and 11 deletions
+5 -3
View File
@@ -66,15 +66,17 @@
<span class="lg-brand">Instant<em>AdPay</em></span>
<span class="lgate-note small muted" id="lgStatus">Login ad sponsor — click "Open Ad" to begin.</span>
<span class="lg-timer mono" id="lgTimer" hidden>…</span>
<a class="btn small sec" id="lgOpenTab" target="_blank" rel="noopener" hidden title="Signing up is easier in a full tab">Open site in a new tab ↗</a>
<button class="btn small" id="lgContinue" type="button" hidden>Go to dashboard</button>
</div>
<iframe class="lgate-frame" id="lgFrame" hidden sandbox="allow-scripts allow-same-origin allow-forms allow-popups" referrerpolicy="no-referrer" title="Sponsor site"></iframe>
<div class="lgate-body">
<div class="lgate-card">
<p class="eyebrow">Today's login sponsor</p>
<div id="lgCreative"></div>
<p style="margin-top:18px"><button class="btn" id="lgOpen" type="button">Open Ad</button></p>
<p class="small muted">The ad opens in a new tab. The timer counts down right here —
when it hits zero, your dashboard button appears above.</p>
<p class="small muted" id="lgHow">The sponsor's page opens right here under this bar. The timer counts down at the top;
when it hits zero, your dashboard button appears beside it.</p>
<p class="small muted" style="margin-top:10px;opacity:.85">Why you are seeing this again:
to keep resources optimised we do not keep anyone signed in for longer than
<strong>4 hours</strong>. After that your session ends and you re-authenticate here.
@@ -1149,7 +1151,7 @@
<script src="/assets/common.js?v=20261007a"></script><script src="/assets/welcome.js?v=20260923b"></script>
<script src="/assets/wallet.js?v=20260911a"></script>
<script src="/assets/promo.js?v=20261007ra"></script>
<script src="/assets/my.js?v=20261009b"></script>
<script src="/assets/my.js?v=20261009c"></script>
<script src="/assets/chat.js?v=20260907l"></script>
</body>
</html>