function updateExample() { const carSize = document.getElementById('carSize').value; const exampleDiv = document.getElementById('carSizeExample'); let exampleText = ''; if (carSize === 'small') { exampleText = 'Przykłady: Fiat 500, Toyota Yaris'; } else if (carSize === 'medium') { exampleText = 'Przykłady: BMW 3, Audi A4'; } else if (carSize === 'large') { exampleText = 'Przykłady: Mercedes S, Audi A8'; } exampleDiv.textContent = exampleText; } function updateProtectionOptions() { const correctionType = document.getElementById('correctionType').value; const protectionTypeSelect = document.getElementById('protectionType'); if (correctionType) { protectionTypeSelect.disabled = false; } else { protectionTypeSelect.disabled = true; protectionTypeSelect.value = ""; } updateCost(); } function updateCost() { const carSize = document.getElementById('carSize').value; const correctionType = document.getElementById('correctionType').value; const protectionType = document.getElementById('protectionType').value; let correctionCost = 0; if (correctionType === 'single') { if (carSize === 'small') correctionCost = 1500; else if (carSize === 'medium') correctionCost = 2200; else if (carSize === 'large') correctionCost = 2600; } else if (correctionType === 'multi') { if (carSize === 'small') correctionCost = 2500; else if (carSize === 'medium') correctionCost = 3200; else if (carSize === 'large') correctionCost = 4200; } let protectionCost = 0; if (protectionType === 'wax') protectionCost = 500; else if (protectionType === 'ceramic') protectionCost = 1500; const totalCost = correctionCost + protectionCost; document.getElementById('totalCost').textContent = `${totalCost}zł`; updateCombinedTotalCost(); } function updateHeadlightCost() { const headlightPolish = parseInt(document.getElementById('headlightPolish').value) || 0; const headlightPolishCost = headlightPolish * 200; document.getElementById('headlightTotalCost').textContent = `${headlightPolishCost}zł`; updateCombinedTotalCost(); } function updateCombinedTotalCost() { const totalCost = parseFloat(document.getElementById('totalCost').textContent) || 0; const headlightTotalCost = parseFloat(document.getElementById('headlightTotalCost').textContent) || 0; const combinedTotalCost = totalCost + headlightTotalCost; document.getElementById('combinedTotalCost').textContent = `${combinedTotalCost}zł`; } function printCalculation() { const carSize = document.getElementById('carSize').value; const correctionType = document.getElementById('correctionType').value; const protectionType = document.getElementById('protectionType').value; const headlightPolish = parseInt(document.getElementById('headlightPolish').value) || 0; let correctionCost = 0; if (correctionType === 'single') { if (carSize === 'small') correctionCost = 1500; else if (carSize === 'medium') correctionCost = 2200; else if (carSize === 'large') correctionCost = 2600; } else if (correctionType === 'multi') { if (carSize === 'small') correctionCost = 2500; else if (carSize === 'medium') correctionCost = 3200; else if (carSize === 'large') correctionCost = 4200; } let protectionCost = 0; if (protectionType === 'wax') protectionCost = 500; else if (protectionType === 'ceramic') protectionCost = 1500; const totalCost = correctionCost + protectionCost; const headlightPolishCost = headlightPolish * 200; const combinedTotalCost = totalCost + headlightPolishCost; let printContent = `

Stacja Detailingu

Adres: ul. Grochowska 45, 04-186 Warszawa

Telefon: 500 805 202

Email: kontakt@stacjadetailingu.pl

Data: ${new Date().toLocaleDateString()}

Kalkulacja Kosztów Usług Detailingowych

`; if (correctionCost > 0) { printContent += ` `; } if (protectionCost > 0) { printContent += ` `; } if (headlightPolishCost > 0) { printContent += ` `; } printContent += `
Opis Koszt
Korekta lakieru (${correctionType === 'single' ? 'Jednoetapowa' : 'Wieloetapowa'}) dla pojazdu ${carSize === 'small' ? 'małego' : carSize === 'medium' ? 'średniego' : 'dużego'} ${correctionCost} zł
Zabezpieczenie lakieru (${protectionType === 'wax' ? 'Wosk' : 'Powłoka ceramiczna'}) ${protectionCost} zł
Polerowanie reflektorów (200zł za sztukę) ${headlightPolishCost} zł
Całkowity koszt ${combinedTotalCost} zł
`; const printArea = document.getElementById('printArea'); printArea.innerHTML = printContent; window.print(); } document.addEventListener('DOMContentLoaded', updateCost); document.addEventListener('DOMContentLoaded', updateHeadlightCost);
Logo stacja detailingu
Kalkulator Usług Detailingowych

Kalkulator Usług Detailingowych

Renowacja Lakieru

Całkowity koszt renowacji lakieru: 0zł

Polerowanie Reflektorów

Całkowity koszt polerowania reflektorów: 0zł
Łączny koszt: 0zł

Cennik

Adres

ul.Grochowska 45
Warszawa 04-186 Serwis ABPOL

Kontakt

Tel. 500 805 202

Menu

Śledź nas

Kontakt Whatsapp

Strona www stworzona w kreatorze WebWave.