diff --git a/static/index.html b/static/index.html index 40ea94a..2a0bb98 100644 --- a/static/index.html +++ b/static/index.html @@ -54,10 +54,10 @@
- - - - + + + +
@@ -95,9 +95,9 @@ return hours + ':' + minutes + ':' + seconds; } - function load(interval) { + function load(interval, live) { let apiKey = document.getElementById('apikey-input').value - fetch(`${window.location.href}/api/summary?interval=${interval}&live=true`, { + fetch(`${window.location.href}/api/summary?interval=${interval}&live=${live}`, { method: 'GET', headers: { 'Accept': 'application/json',