TEST

Home/Store/TEST
-removed

Epoksihartsin Menekkilaskuri

function toggleInputFields() { const shape = document.getElementById('shape').value; document.getElementById('rectangleInputs').style.display = (shape === 'rectangle') ? 'block' : 'none'; document.getElementById('circleInputs').style.display = (shape === 'circle') ? 'block' : 'none'; } function validateInput(value) { return !isNaN(value) && value > 0; } function calculateEpoxy() { const shape = document.getElementById('shape').value; const thickness = parseFloat(document.getElementById('thickness').value) / 10; // Muunnetaan mm -> cm let areaSquareCm = 0; if (!validateInput(thickness)) { document.getElementById('result').innerText = "Syötä kaikki mitat oikein."; return; } if (shape === 'rectangle') { const length = parseFloat(document.getElementById('length').value); const width = parseFloat(document.getElementById('width').value); if (!validateInput(length) || !validateInput(width)) { document.getElementById('result').innerText = "Syötä kaikki mitat oikein."; return; } areaSquareCm = length * width; // cm^2 } else if (shape === 'circle') { const diameter = parseFloat(document.getElementById('diameter').value); if (!validateInput(diameter)) { document.getElementById('result').innerText = "Syötä kaikki mitat oikein."; return; } const radius = diameter / 2; areaSquareCm = Math.PI * Math.pow(radius, 2); // cm^2 } // Lasketaan tilavuus ja paino const volumeCubicCm = areaSquareCm * thickness; // cm^3 const density = 1.1; // Epoksin tiheys g/cm^3 const volumeLitres = volumeCubicCm / 1000; // muunto litroiksi const volumeGrams = volumeCubicCm * density; // muunto grammoiksi käyttäen tiheyttä document.getElementById('result').innerText = `Tarvittava määrä epoksia: ${volumeLitres.toFixed(2)} litraa (${volumeGrams.toFixed(2)} g)`; }
Refine by
 

Filters

Clear all
Filters
Clear all
A
B
C
H
D
E
F
  • Search Products
  • My Account
  • Track Orders
  • Favorites
  • Shopping Bag
  • Gift Cards
Display prices in:EUR
Skip to main content
Test Store
Menu
New menu item
ABOUT US
STORE
SHIPPING
CONTACT INFO
+1-555-777-1234
NØISE • HI-FI SOUND FOR EVERYONE
Cookie settingsReport abuse
Made with Ecwid by Lightspeed