charsheet:jolly
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende Überarbeitung | |||
| charsheet:jolly [2025/05/12 12:52] – Struct-Daten geändert doc-admin | charsheet:jolly [2025/05/12 12:53] (aktuell) – doc-admin | ||
|---|---|---|---|
| Zeile 6: | Zeile 6: | ||
| ---- | ---- | ||
| - | === 🧮 Automatische Berechnung | + | === 🔢 Automatische Berechnung === |
| - | ^ Attribut | + | < |
| - | | Reaktion | + | < |
| - | | Intuition | + | < |
| - | | Initiative | + | |
| - | | Konstitution | + | < |
| - | | Körperlicher Monitor | + | document.addEventListener(" |
| - | | Willenskraft | + | function parseNumber(selector) { |
| - | | Betäubungsmonitor | + | const el = document.querySelector(selector); |
| + | if (!el) return 0; | ||
| + | const val = parseFloat(el.value | ||
| + | return isNaN(val) ? 0 : val; | ||
| + | | ||
| + | |||
| + | const reaktion | ||
| + | const intuition = parseNumber(' | ||
| + | const konstitution | ||
| + | const willenskraft = parseNumber(' | ||
| + | |||
| + | document.getElementById(" | ||
| + | document.getElementById(" | ||
| + | | ||
| + | }); | ||
| + | </ | ||
| ---- struct data ---- | ---- struct data ---- | ||
charsheet/jolly.txt · Zuletzt geändert: 2025/05/12 12:53 von doc-admin
