User Tools

Site Tools


hot-sauces:habanero_mango_taco_sauce_25

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
hot-sauces:habanero_mango_taco_sauce_25 [2025/09/12 22:45] – davidhot-sauces:habanero_mango_taco_sauce_25 [2026/10/24 07:50] (current) – david
Line 9: Line 9:
   * 100g salz   * 100g salz
   * 90g kreuzkümmel   * 90g kreuzkümmel
-  * 45g koriander+  * 45g koriander<html> 
 +<style> 
 +.sauce-calc { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; max-width: 500px; margin: 15px 0; padding: 20px; background: #fff; border: 2px solid #d9534f; border-radius: 8px; } 
 +.sauce-calc h3 { margin-top: 0; color: #d9534f; } 
 +.sauce-calc input { width: 100%; padding: 8px; border: 2px solid #ddd; border-radius: 4px; font-size: 14px; margin-bottom: 15px; } 
 +.sauce-calc .res { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #eee; } 
 +.sauce-calc .amt { font-weight: bold; color: #d9534f; } 
 +.sauce-calc .base { background: #fff3cd; padding: 8px; margin: 0 -8px; border-left: 3px solid #d9534f; } 
 +</style> 
 + 
 +<div class="sauce-calc"> 
 +  <h3>🌶️ Mengen-Rechner</h3> 
 +  <label><strong>Habaneros gesamt (kg):</strong></label> 
 +  <input type="number" id="hab" value="2.1" min="0.1" step="0.1" oninput="calc()"> 
 +  <div id="out"></div> 
 +</div> 
 + 
 +<script> 
 +const R = { 
 +  'Habaneros gesamt': [1, 'kg', 1], 
 +  'Mangosaft': [2/2.1, 'l', 0], 
 +  'Mangofruchtfleisch': [1.8/2.1, 'kg', 0], 
 +  'Zwiebeln': [1/2.1, 'kg', 0], 
 +  'Knoblauch': [0.35/2.1, 'kg', 0], 
 +  'Condimento Bianco': [1.5/2.1, 'l', 0], 
 +  'Tomatenmark': [200/2.1, 'g', 0], 
 +  'Salz': [100/2.1, 'g', 0], 
 +  'Kreuzkümmel': [90/2.1, 'g', 0], 
 +  'Koriander': [45/2.1, 'g', 0] 
 +}; 
 + 
 +function calc() { 
 +  let b = parseFloat(document.getElementById('hab').value) || 0, h = ''; 
 +  for (let [i, d] of Object.entries(R)) { 
 +    let a = b * d[0]; 
 +    let c = d[1] == 'g' ? Math.round(a) : a.toFixed(2).replace('.', ','); 
 +    h += `<div class="${d[2] ? 'res base' : 'res'}"><span>${i}</span><span class="amt">${c} ${d[1]}</span></div>`; 
 +  } 
 +  document.getElementById('out').innerHTML = h; 
 +} 
 +calc(); 
 +</script> 
 +</html> 
hot-sauces/habanero_mango_taco_sauce_25.txt · Last modified: by david

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki