Glossar visuell komplett: 162 Bilder, 13 Kapitel-Icons, 12 interaktive Widgets
- 162 neue Glossar-Bilder (Flat-Scandinavian, gpt-image-1) → alle 402 Einträge bebildert; image_path-Update: App/Don_t_Deploy/2026-07-16-glossar-bilder.sql - 13 Kapitel-Icons (icon-<id>.webp) ersetzen die Emojis in Buch-Übersicht + Kapitel-h1 (buchKapIcon-Helper mit Emoji-Fallback) - 12 interaktive Glossar-Experimente in 2 Modulen: natur (Mondrotation, Kernschatten, Keeling-Kurve, Pegel/HQ100, Wärmeausdehnung, Klimaträgheit) + wirtschaft (Preiselastizität, Engpass, Skaleneffekt, Modal Split, Netzfrequenz/Hertz, Lageenergie/Pumpspeicher); Registry via Object.assign, Script-Einbindung in glossar.php Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -38,6 +38,16 @@ function buchBild(string $slug, string $vorschlag, string $unterschrift = '', bo
|
||||
return "<div class=\"b-foto-platzhalter\"><span>📷</span><b>Foto gesucht</b><small>" . htmlspecialchars($vorschlag) . "</small><code>assets/img/buch/" . BUCH_SIM . "/{$slug}.jpg</code></div>";
|
||||
}
|
||||
|
||||
/** Kapitel-Symbol: generiertes Icon-Bild, solange keins da ist das Emoji. */
|
||||
function buchKapIcon(string $emoji): string {
|
||||
global $bp;
|
||||
$rel = 'assets/img/buch/icon-' . BUCH_SIM . '.webp';
|
||||
if (is_file(__DIR__ . '/../../' . $rel)) {
|
||||
return '<img class="b-kapicon" src="' . $bp . '/' . $rel . '" alt="">';
|
||||
}
|
||||
return $emoji;
|
||||
}
|
||||
|
||||
/** Glossar-Begriff mit Tooltip */
|
||||
function g(string $slug, string $label): string {
|
||||
return "<span class=\"ggs-g\" data-glossar=\"{$slug}\">{$label}</span>";
|
||||
|
||||
Reference in New Issue
Block a user