From a9f902ba30bcfc65713efcb2edd6ae411b46fc6d Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Mon, 24 Jun 2019 17:12:21 -0400 Subject: [PATCH] slower refresh --- public/fetch.js | 4 ++-- public/index.html | 2 +- public/style.css | 9 +++++++++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/public/fetch.js b/public/fetch.js index 7b4bac0..9c850ef 100644 --- a/public/fetch.js +++ b/public/fetch.js @@ -13,8 +13,8 @@ async function fetchData() { function updateData() { fetchData().then(data => updateTable(data)).catch(data => console.log(data)); - // Re-fetch data every 15 seconds - setTimeout(updateData, 15000); + // Re-fetch data every 1 minute + setTimeout(updateData, 60000); } function updateTable(data) { diff --git a/public/index.html b/public/index.html index 1865a1d..b805047 100644 --- a/public/index.html +++ b/public/index.html @@ -30,7 +30,7 @@ -

Updates every 15 seconds.

+

Updates every 1 minute.

diff --git a/public/style.css b/public/style.css index 3911f20..a7c5ed2 100644 --- a/public/style.css +++ b/public/style.css @@ -7,6 +7,15 @@ body { text-align: center; } +a { + color: #59289b; + text-decoration: none; +} + +a:hover { + text-decoration: underline; +} + h1 { font-size: 2.4em; }