From 6804a26c5d72e7a0d2e682e5c6f5d05292a4f67d Mon Sep 17 00:00:00 2001 From: martbost Date: Fri, 2 Oct 2026 08:47:36 -0500 Subject: [PATCH] Games cards: optional artPos crop anchor; Drip Runner share image anchored left so its headline isn't cropped Co-Authored-By: Claude Opus 5.5 --- public/assets/my.js | 2 +- public/my.html | 2 +- server.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/assets/my.js b/public/assets/my.js index 450c164..9d6aff7 100644 --- a/public/assets/my.js +++ b/public/assets/my.js @@ -1654,7 +1654,7 @@ let g = null; try { g = await (await fetch('/api/my/games')).json(); } catch (e) {} const list = (g && g.games) || []; if (!list.length) { el.innerHTML = '

No games are open yet. Check back soon.

'; return; } - el.innerHTML = list.map(x => '
' + esc(x.tag || '') + '

' + esc(x.name) + (x.preview ? 'preview, not live' : '') + '

' + esc(x.blurb) + '

' + (x.progress && x.progress.line ? '
' + esc(x.progress.line) + '
' : '') + '

Pays: ' + esc(x.pays || 'POL') + '

' + esc(x.cta || 'Play') + '
').join(''); + el.innerHTML = list.map(x => '
' + esc(x.tag || '') + '

' + esc(x.name) + (x.preview ? 'preview, not live' : '') + '

' + esc(x.blurb) + '

' + (x.progress && x.progress.line ? '
' + esc(x.progress.line) + '
' : '') + '

Pays: ' + esc(x.pays || 'POL') + '

' + esc(x.cta || 'Play') + '
').join(''); } async function loadReturnCard() { const card = $('phReturn'); if (!card) return; diff --git a/public/my.html b/public/my.html index f7cd88c..e6dec60 100644 --- a/public/my.html +++ b/public/my.html @@ -1107,7 +1107,7 @@ - + diff --git a/server.js b/server.js index a2eeb62..62b5e34 100644 --- a/server.js +++ b/server.js @@ -1290,7 +1290,7 @@ async function gkCallback(cbUrl, receipt) { function GAMES() { return [ { slug: 'driprunner', name: 'Drip Runner', tag: 'Arcade runner', blurb: 'Hop the network, dodge the bots, clear chapters. Each first clear drips POL into your game balance, and a refuel on a member\u2019s page keeps your run alive.', - art: DR_URL() + '/og-driprunner.jpg?v=20261002', play: '/api/my/driprunner', pays: 'POL to your wallet at 0.25', progress: drProgress }, + art: DR_URL() + '/og-driprunner.jpg?v=20261002', artPos: 'left', play: '/api/my/driprunner', pays: 'POL to your wallet at 0.25', progress: drProgress }, { slug: 'gemkingdom', name: 'Gem Kingdom', tag: 'Fantasy match-3', blurb: 'Match gems to battle monsters with three heroes, earn stars and rebuild your village. Crowns for instant upgrades come from your ad credits.', art: GK_URL() + '/fantasy/og-gemkingdom.jpg?v=20261002', play: '/api/my/gemkingdom', cta: 'Play', pays: 'POL for first clears; Crowns from ad credits' }, { slug: 'polhunter', name: 'PolHunter', tag: 'Scavenger hunt', blurb: 'Hunt hidden codes on sites across the network. Every find drips POL straight to your wallet.',