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:
martbost
2026-09-13 08:56:13 -05:00
parent 6589930945
commit 34098e5565
2 changed files with 7 additions and 5 deletions
+6 -4
View File
@@ -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">&#10003;</span><b>Videos done for today</b><span class="muted small">' + (capHit ? 'That is today&rsquo;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;
+1 -1
View File
@@ -915,7 +915,7 @@
<script src="/assets/common.js?v=20260913a"></script>
<script src="/assets/wallet.js?v=20260911a"></script>
<script src="/assets/promo.js?v=20260911a"></script>
<script src="/assets/my.js?v=20260913c"></script>
<script src="/assets/my.js?v=20260913d"></script>
<script src="/assets/chat.js?v=20260907l"></script>
</body>
</html>