diff --git a/templates/index.html b/templates/index.html index a7aed92a..47a04559 100644 --- a/templates/index.html +++ b/templates/index.html @@ -8,7 +8,7 @@
- +
@@ -144,5 +144,14 @@ } }); })); + + document.getElementById("date-selector").addEventListener("change", (event) => { + if (event.target.value) { + document.location.replace(`/?date=${event.target.value}`) + } else { + document.location.replace("/") + } + }); + {% endblock %}