ClutterHunt: SEEK_SSO_SECRET tokens, in-game sign-in (game seek), one-tap hand-off, hint visits via the refuel flow, Games card + strip entry

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-03 17:10:03 -05:00
parent 7775ed87ef
commit a3905a0b5a
4 changed files with 137 additions and 7 deletions
+3 -3
View File
@@ -32,10 +32,10 @@
function answer(i) {
api('/api/refuel/done', { n: nonce, answer: i }).then(function (r) {
if (r.error) { if (r.retry) return challenge(); $('rfHint').textContent = r.error; $('rfCheck').hidden = true; return; }
done = true; $('rfCheck').hidden = true; var gk = GAME === 'Gem Kingdom';
$('rfHint').textContent = gk ? 'Visit counted. Your heroes are back on their feet.' : 'Visit counted. Your tank is full.';
done = true; $('rfCheck').hidden = true; var gk = GAME === 'Gem Kingdom', ch = GAME === 'ClutterHunt';
$('rfHint').textContent = gk ? 'Visit counted. Your heroes are back on their feet.' : ch ? 'Visit counted. Your hint is ready.' : 'Visit counted. Your tank is full.';
if (gk && inGame) { try { window.parent.postMessage({ gkContinue: nonce, ok: true }, '*'); } catch (e) {} }
var b = $('rfDone'); b.disabled = false; b.textContent = gk ? 'Back to the battle' : 'Back to the run'; b.onclick = function () { location.href = r.ret; };
var b = $('rfDone'); b.disabled = false; b.textContent = gk ? 'Back to the battle' : ch ? 'Back to the room' : 'Back to the run'; b.onclick = function () { location.href = r.ret; };
setTimeout(function () { location.href = r.ret; }, 1200);
});
}