From c51d4311d43db78219662d05742cf9fea7a60fd3 Mon Sep 17 00:00:00 2001 From: Timo Henkensiefken Date: Tue, 10 Dec 2024 17:41:32 +0100 Subject: [PATCH] fix: scaling, refresh --- fetchapi.js | 3 ++- style.css | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fetchapi.js b/fetchapi.js index dc13960..ac403f3 100644 --- a/fetchapi.js +++ b/fetchapi.js @@ -61,6 +61,7 @@ function groupDepartures(data) { // Rendert die Api Daten in den DOM function renderDOMByRoute(data) { + while (document.body.firstChild) document.body.removeChild(document.body.firstChild); document.body.appendChild(getHeaderBanner(data)); const routes = groupDepartures(data); @@ -140,4 +141,4 @@ function getRouteImage(route) { // function setScaling refreshData(); -// setInterval(refreshData, 15000); +setInterval(refreshData, 15000); diff --git a/style.css b/style.css index f8292a5..b561d82 100644 --- a/style.css +++ b/style.css @@ -1,5 +1,5 @@ :root { - font-size: 5px; + font-size: 10px; } * {