Skip to content

Commit

Permalink
snooze: Autoscroll the ticker
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosuav committed Nov 6, 2023
1 parent 45e8745 commit e7e044e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions httpstatic/chan_snoozeads.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ function TIME_T(time_t) {
return TIME({datetime: date.toISOString()}, date.toLocaleTimeString());
}

let rerender = 0;
export function render(data) {
clearInterval(rerender);
rerender = setInterval(render, 60000, data);
//For the time tape, pick out some useful markers and organize them.
const now = Math.floor(new Date/1000);
const times = [
Expand Down

0 comments on commit e7e044e

Please sign in to comment.