Watch videos: green-check done screen when the day's videos are finished, like Watch ads
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
+6
-4
@@ -1007,10 +1007,12 @@
|
||||
let r = null;
|
||||
try { r = await (await fetch('/api/my/videos?orientation=landscape')).json(); } catch (e) {}
|
||||
if (!r || !r.ad) {
|
||||
$('vidBox').innerHTML = '<span class="muted small">' + (r && r.status && r.status.left <= 0
|
||||
? 'That is today\'s video set. Come back tomorrow.'
|
||||
: r && r.allWatched ? 'You have watched every live video for today (each one pays once a day). New ones appear as members launch video campaigns.'
|
||||
: 'No member videos are live right now. Check back when a campaign is running.') + '</span>';
|
||||
// same done screen as Watch ads when the day's videos are finished (Marty, 2026-09-13)
|
||||
const capHit = !!(r && r.status && r.status.left <= 0), allWatched = !!(r && r.allWatched);
|
||||
$('vidBox').innerHTML = (capHit || allWatched)
|
||||
? '<div class="done-big"><span class="tick">✓</span><b>Videos done for today</b><span class="muted small">' + (capHit ? 'That is today’s video set (' + r.status.count + ' watched). Fresh videos tomorrow.' : 'You have watched every live video for today; each one pays once a day. New ones appear as members launch video campaigns.') + '</span></div>'
|
||||
: '<span class="muted small">No member videos are live right now. Check back when a campaign is running.</span>';
|
||||
if ($('vidStartBtn')) $('vidStartBtn').hidden = capHit || allWatched;
|
||||
$('vidBox').hidden = false;
|
||||
$('vidWrap').hidden = true;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user