Coming-soon card: no ribbon (the art says it and it covered the title)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-04 08:28:38 -05:00
parent 5a4b27f50e
commit 1ac5e1d206
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1682,7 +1682,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 ? '<span class="gc-ribbon gc-soon"><i></i>Coming soon</span>' : 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.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.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('');
}
async function loadReturnCard() {
const card = $('phReturn'); if (!card) return;
+1 -1
View File
@@ -1131,7 +1131,7 @@
<script src="/assets/common.js?v=20261003fr2"></script><script src="/assets/welcome.js?v=20260923b"></script>
<script src="/assets/wallet.js?v=20260911a"></script>
<script src="/assets/promo.js?v=20261002ref"></script>
<script src="/assets/my.js?v=20261004soon"></script>
<script src="/assets/my.js?v=20261004soon2"></script>
<script src="/assets/chat.js?v=20260907l"></script>
</body>
</html>