const calculatorForm = document.getElementById('calculator-form'); calculatorForm.addEventListener('submit', calculatePrice); function calculatePrice(event) { event.preventDefault(); const height = parseInt(document.getElementById('height-input').value); const width = parseInt(document.getElementById('width-input').value); const material = document.getElementById('material-input').value; const currency = document.getElementById('currency-input').value; const additionalCost = parseInt(document.getElementById('additional-cost-input').value); // Calculate the price based on the inputs // ... // Update the price on the page // ... }