mirror of
https://github.com/pcvolkmer/onco-analytics-monitor.git
synced 2025-04-19 19:16:52 +00:00
feat: blink statistics table on update
This commit is contained in:
parent
afa8027af4
commit
b0eb783247
@ -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('');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user