You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

12 lines
295 B

function handleTickInit(tick) {
// each 3 seconds we'll update the billboard
Tick.helper.interval(function () {
fetch('/next')
.then(response => response.text())
.then(data => {
console.log(data)
next = data.trim()
tick.value = next
});
}, 3000);
}