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 #}
|
{# Template #}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>Empede</title>
|
<title>Empede</title>
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@
|
||||||
|
|
||||||
progressInterval = window.setInterval(() => {
|
progressInterval = window.setInterval(() => {
|
||||||
elapsed += 1.0;
|
elapsed += 1.0;
|
||||||
let progress = elapsed / duration;
|
let progress = Math.min(elapsed / duration, 1.0);
|
||||||
progressBar.style.width = `${progress * 100}%`;
|
progressBar.style.width = `${progress * 100}%`;
|
||||||
}, 1000);
|
}, 1000);
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue