Games tab: Play opens the game in a new tab so the dashboard keeps its place (Marty 2026-10-08)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-08 07:51:45 -05:00
parent 5f6ab1b35c
commit 7131adfc42
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1704,7 +1704,7 @@
const list = (g && g.games) || [];
if (!list.length) { el.innerHTML = '<p class="muted small">No games are open yet. Check back soon.</p>'; return; }
// a seasonal card (x.season, 2026-10-02) wears the pink limited-time ribbon from the Spooky Doors UI kit
el.innerHTML = list.map(x => '<div class="game-card"><img src="' + esc(x.art) + '" alt="" loading="lazy"' + (x.artPos ? ' style="object-position:' + esc(x.artPos) + ' center"' : '') + '>' + (x.soon ? '' : x.season && x.season.ends ? '<span class="gc-ribbon"><i></i>Limited time \u00b7 ends ' + esc(x.season.ends) + '</span>' : '') + '<div class="gc-body"><span class="gc-tag">' + esc(x.tag || '') + '</span><h4>' + esc(x.name) + (x.preview ? '<span class="gc-pre">' + esc(x.previewNote || 'preview, not live') + '</span>' : '') + '</h4><p class="muted small" style="margin:0">' + esc(x.blurb) + '</p>' + (x.progress && x.progress.line ? '<div class="gc-prog">' + esc(x.progress.line) + '</div>' : '') + '<p class="muted small" style="margin:0">Pays: ' + esc(x.pays || 'POL') + '</p>' + (x.perk ? '<p class="small" style="margin:0;color:var(--gold, #e2b04a)">Members get ' + esc(x.perk) + '</p>' : '') + (x.soon ? '<span class="btn gc-soonbtn" aria-disabled="true">' + esc(x.soon) + '</span>' : '<a class="btn" href="' + esc(x.play) + '">' + esc(x.cta || 'Play') + '</a>') + '</div></div>').join('');
el.innerHTML = list.map(x => '<div class="game-card"><img src="' + esc(x.art) + '" alt="" loading="lazy"' + (x.artPos ? ' style="object-position:' + esc(x.artPos) + ' center"' : '') + '>' + (x.soon ? '' : x.season && x.season.ends ? '<span class="gc-ribbon"><i></i>Limited time \u00b7 ends ' + esc(x.season.ends) + '</span>' : '') + '<div class="gc-body"><span class="gc-tag">' + esc(x.tag || '') + '</span><h4>' + esc(x.name) + (x.preview ? '<span class="gc-pre">' + esc(x.previewNote || 'preview, not live') + '</span>' : '') + '</h4><p class="muted small" style="margin:0">' + esc(x.blurb) + '</p>' + (x.progress && x.progress.line ? '<div class="gc-prog">' + esc(x.progress.line) + '</div>' : '') + '<p class="muted small" style="margin:0">Pays: ' + esc(x.pays || 'POL') + '</p>' + (x.perk ? '<p class="small" style="margin:0;color:var(--gold, #e2b04a)">Members get ' + esc(x.perk) + '</p>' : '') + (x.soon ? '<span class="btn gc-soonbtn" aria-disabled="true">' + esc(x.soon) + '</span>' : '<a class="btn" href="' + esc(x.play) + '" target="_blank" rel="noopener">' + esc(x.cta || 'Play') + '</a>') + '</div></div>').join('');
}
async function loadReturnCard() {
const card = $('phReturn'); if (!card) return;
+1 -1
View File
@@ -1149,7 +1149,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=20261007b"></script>
<script src="/assets/my.js?v=20261008a"></script>
<script src="/assets/chat.js?v=20260907l"></script>
</body>
</html>