14 lines
276 B
HTML
14 lines
276 B
HTML
{{ $seconds := .Get 0 }}
|
|
{{ $ms := ( printf "%s%s" $seconds "000" )}}
|
|
<script>
|
|
function Sleep(milliseconds) {
|
|
return new Promise(resolve => setTimeout(resolve, milliseconds));
|
|
}
|
|
|
|
async function reload(){
|
|
await Sleep({{ $ms }});
|
|
location.reload();
|
|
}
|
|
reload();
|
|
</script>
|