1
0
mirror of https://github.com/pcvolkmer/onco-analytics-monitor.git synced 2025-04-19 11:06:52 +00:00

feat: blink statistics table on update

This commit is contained in:
Paul-Christian Volkmer 2024-08-05 20:09:12 +02:00
parent afa8027af4
commit b0eb783247

View File

@ -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 = '<thead><tr><th>ICD10-Gruppe</th><th>Anzahl</th></tr></thead>'
+ Array.from(data.entries).map(entry => `<tr><td>${entry.name}</td><td>${entry.count}</td></tr>`).join('');
}