Compare commits

...

2 commits

Author SHA1 Message Date
3ec9af38e0
Add language attribute to <html>
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-02 02:01:30 +02:00
b81227265c
Clamp progress bar to 100% 2023-05-02 02:00:44 +02:00
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{# Template #}
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Empede</title>

View file

@ -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 %}