This commit is contained in:
2026-01-24 01:52:25 +01:00
parent 467461b747
commit 5618c8e85c
3 changed files with 14 additions and 13 deletions

View File

@@ -107,10 +107,6 @@
const baseHead = [
'Material',
'Eigenschaften',
'Tg °C',
'Düse',
'Platte',
'Zusatz',
'Anwendung',
'Kinder <span aria-hidden="true">👶</span>',
'Emission <span aria-hidden="true">🌫️</span>'
@@ -146,13 +142,18 @@
? { icon: '✅', text: 'niedrig' }
: (m.emission === 'medium' ? { icon: '⚠️', text: 'mittel' } : { icon: '⛔', text: 'hoch' });
const tooltipLines = [
m.tg_celsius ? `Tg °C: ${m.tg_celsius}` : 'Tg °C: ',
m.nozzle_req ? `Düse: ${m.nozzle_req}` : 'Düse: ',
m.plate_req ? `Platte: ${m.plate_req}` : 'Platte: ',
m.extra_req ? `Zusatz: ${m.extra_req}` : 'Zusatz: ',
m.emission ? `Emission: ${m.emission}` : 'Emission: '
];
const tooltip = escapeHtml(tooltipLines.join(' | '));
let html = '';
html += `<td><strong>${escapeHtml(m.code)}</strong><div class="mm-sub">${escapeHtml(m.short_desc || '')}</div></td>`;
html += `<td title="${tooltip}"><strong>${escapeHtml(m.code)}</strong><div class="mm-sub">${escapeHtml(m.short_desc || '')}</div></td>`;
html += `<td>${escapeHtml(m.properties || '')}</td>`;
html += `<td>${escapeHtml(m.tg_celsius || '')}</td>`;
html += `<td>${escapeHtml(m.nozzle_req || '')}</td>`;
html += `<td>${escapeHtml(m.plate_req || '')}</td>`;
html += `<td>${escapeHtml(m.extra_req || '')}</td>`;
html += `<td>${escapeHtml(m.application || '')}</td>`;
html += `<td title="${escapeHtml(kid.text)}">${kid.icon}</td>`;
html += `<td title="${escapeHtml(em.text)}">${em.icon}</td>`;