mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-07-27 19:57:38 +00:00
Sketch size is reduced by 5 - 6 kB Files are extracted from original source and moved to `static` directory.
12 lines
347 B
JavaScript
12 lines
347 B
JavaScript
function timedRefresh(timeoutPeriod) {
|
|
var timer = setInterval(function() {
|
|
if (timeoutPeriod > 0) {
|
|
timeoutPeriod -= 1;
|
|
document.getElementById('countdown').innerHTML = timeoutPeriod + '..' + '<br />';
|
|
} else {
|
|
clearInterval(timer);
|
|
window.location.href = window.location.href;
|
|
};
|
|
}, 1000);
|
|
};
|