From b0eb78324766561d255df4d937cb388a33344394 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Mon, 5 Aug 2024 20:09:12 +0200 Subject: [PATCH] feat: blink statistics table on update --- src/main/resources/templates/index.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index f2d6537..04765c0 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -161,6 +161,11 @@ function updateData(data, elemName) { let elem = document.getElementById(elemName); + elem.parentElement.parentElement.style.backgroundColor = '#cfc'; + setTimeout(() => { + elem.parentElement.parentElement.style.backgroundColor = ''; + }, 1000); + elem.innerHTML = 'ICD10-GruppeAnzahl' + Array.from(data.entries).map(entry => `${entry.name}${entry.count}`).join(''); }