ja.son-williams.ca/www/plugins/jasonwilliams/calgaryconditions/assets/javascript/currentinfo.js
2020-05-16 15:10:14 -06:00

12 lines
243 B
JavaScript

$(() => {
const oneMinute = 1 * 60 * 1000
const requestUpdate = () => {
$.request('CurrentInfo::onUpdateRequested', {
update: { '@result': '#currentinfo' }
})
}
setInterval(requestUpdate, oneMinute)
requestUpdate()
})