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

@@ -43,10 +43,6 @@ $app->assets()->addScript('/assets/app.js', 'footer', true);
<tr id="tableHead"> <tr id="tableHead">
<th>Material</th> <th>Material</th>
<th>Eigenschaften</th> <th>Eigenschaften</th>
<th>Tg °C</th>
<th>Düse</th>
<th>Platte</th>
<th>Zusatz</th>
<th>Anwendung</th> <th>Anwendung</th>
<th>Kinder <span aria-hidden="true">👶</span></th> <th>Kinder <span aria-hidden="true">👶</span></th>
<th>Emission <span aria-hidden="true">🌫️</span></th> <th>Emission <span aria-hidden="true">🌫️</span></th>

View File

@@ -161,6 +161,10 @@
vertical-align: top; vertical-align: top;
} }
.mm-table tbody td[title] {
cursor: help;
}
.mm-table tbody tr:nth-child(even) { .mm-table tbody tr:nth-child(even) {
background: #fcfcff; background: #fcfcff;
} }

View File

@@ -107,10 +107,6 @@
const baseHead = [ const baseHead = [
'Material', 'Material',
'Eigenschaften', 'Eigenschaften',
'Tg °C',
'Düse',
'Platte',
'Zusatz',
'Anwendung', 'Anwendung',
'Kinder <span aria-hidden="true">👶</span>', 'Kinder <span aria-hidden="true">👶</span>',
'Emission <span aria-hidden="true">🌫️</span>' 'Emission <span aria-hidden="true">🌫️</span>'
@@ -146,13 +142,18 @@
? { icon: '✅', text: 'niedrig' } ? { icon: '✅', text: 'niedrig' }
: (m.emission === 'medium' ? { icon: '⚠️', text: 'mittel' } : { icon: '⛔', text: 'hoch' }); : (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 = ''; 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.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>${escapeHtml(m.application || '')}</td>`;
html += `<td title="${escapeHtml(kid.text)}">${kid.icon}</td>`; html += `<td title="${escapeHtml(kid.text)}">${kid.icon}</td>`;
html += `<td title="${escapeHtml(em.text)}">${em.icon}</td>`; html += `<td title="${escapeHtml(em.text)}">${em.icon}</td>`;