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; } * {