From f7d2a39a00c9c60974f10843f94915f86bad5206 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferdinand=20M=C3=BCtsch?= Date: Mon, 20 May 2019 20:57:49 +0200 Subject: [PATCH] No live mode for requests larger than one day. --- static/index.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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',