diff --git a/cmd/http/public/explore.html b/cmd/http/public/explore.html index 74bf6c8..b7c115e 100644 --- a/cmd/http/public/explore.html +++ b/cmd/http/public/explore.html @@ -29,9 +29,15 @@ console.log(path, query); document.getElementById("graph").src = window.origin + path + query } + function init() { + const zeroPad = (num, places) => String(num).padStart(places, '0') + var d = new Date() + d.setMonth(d.getMonth()-6) + document.getElementsByName("zoomStart")[0].value = `${d.getFullYear()}-${zeroPad(d.getMonth(), 2)}` + } -
+