We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed4f749 commit 5e79715Copy full SHA for 5e79715
template.html.jinja
@@ -56,4 +56,22 @@
56
</table>
57
<p>Last updated at {{ generation_time.strftime('%A, %d %B %Y, %X %Z') }}.</p>
58
</body>
59
+<script>
60
+ function updateProgressBarVisibility() {
61
+ document.querySelectorAll('.progress-bar').forEach(progressBar => {
62
+ const textWidth = progressBar.scrollWidth;
63
+ const barWidth = progressBar.offsetWidth;
64
+
65
+ if (barWidth < textWidth) {
66
+ progressBar.classList.add('low');
67
+ } else {
68
+ progressBar.classList.remove('low');
69
+ }
70
+ });
71
72
73
+ updateProgressBarVisibility();
74
75
+ window.addEventListener('resize', updateProgressBarVisibility);
76
+</script>
77
</html>
0 commit comments