ja.son-williams.ca/www/plugins/jasonwilliams/calgaryconditions/assets/javascript/currentinfo.js

12 lines
243 B
JavaScript
Raw Permalink Normal View History

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