diff --git a/assets/part.js b/assets/part.js index 0b185c9..da51a4a 100644 --- a/assets/part.js +++ b/assets/part.js @@ -85,7 +85,13 @@ window.ppcbReady(async () => { Datasheet ↗ -
✓ 3D model✓ Schematic✓ Footprint✓ SPICE✓ ${(p.pins || []).length} pins
+
${[ + ['3D model', !!p.model_3d], + ['Schematic', !!(p.pins || []).length], // schematicSVG() draws from pins + ['Footprint', !!(p.footprint_pads || []).length], // footprintSVG() draws from footprint_pads + ['SPICE', !!p.spice], + [`${(p.pins || []).length} pins`, !!(p.pins || []).length], + ].map(([label, have]) => `${have ? '✓' : '—'} ${label}`).join('')}
${p.when_to_use ? `

When to use

${esc(p.when_to_use)}

` : ''} ${ucs ? `

What it's used for

${ucs}
` : ''} ${params ? `

Specifications

${params}
` : ''}