hot-sauces:habanero_zwetschke
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| hot-sauces:habanero_zwetschke [2026/10/24 07:56] – david | hot-sauces:habanero_zwetschke [2026/10/24 07:57] (current) – david | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| ergibt 4,7l sauce | ergibt 4,7l sauce | ||
| + | < | ||
| + | < | ||
| + | .sauce-calc { font-family: | ||
| + | .sauce-calc h3 { margin-top: 0; color: #d9534f; } | ||
| + | .sauce-calc input { width: 100%; padding: 8px; border: 2px solid #ddd; border-radius: | ||
| + | .sauce-calc input:focus { outline: none; border-color: | ||
| + | .sauce-calc .res { display: flex; justify-content: | ||
| + | .sauce-calc .res: | ||
| + | .sauce-calc .amt { font-weight: | ||
| + | .sauce-calc .base { background: #fff3cd; padding: 8px; margin: 0 -8px; border-left: | ||
| + | </ | ||
| + | |||
| + | <div class=" | ||
| + | < | ||
| + | < | ||
| + | <input type=" | ||
| + | <div id=" | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | const R = { | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | }; | ||
| + | |||
| + | function calc() { | ||
| + | let b = parseFloat(document.getElementById(' | ||
| + | for (let [i, d] of Object.entries(R)) { | ||
| + | let a = b * d[0]; | ||
| + | let c = d[1] == ' | ||
| + | h += `<div class=" | ||
| + | } | ||
| + | document.getElementById(' | ||
| + | } | ||
| + | calc(); | ||
| + | </ | ||
| + | </ | ||
hot-sauces/habanero_zwetschke.txt · Last modified: by david
