Compare commits
2 commits
e03e48d08f
...
3ec9af38e0
Author | SHA1 | Date | |
---|---|---|---|
3ec9af38e0 | |||
b81227265c |
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
{# Template #}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Empede</title>
|
||||
|
||||
|
|
|
@ -75,7 +75,7 @@
|
|||
|
||||
progressInterval = window.setInterval(() => {
|
||||
elapsed += 1.0;
|
||||
let progress = elapsed / duration;
|
||||
let progress = Math.min(elapsed / duration, 1.0);
|
||||
progressBar.style.width = `${progress * 100}%`;
|
||||
}, 1000);
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue