diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 0000000..2d23684
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,23 @@
+# Git files
+.git
+.gitignore
+
+# Documentation
+README.md
+*.md
+
+# Development/build tools
+consolidate-database.js
+update-vehicle-database.js
+autocomplete-ui.js
+
+# Development data
+vehicle-data/
+*.json
+
+# Docker files (not needed in container)
+docker-compose.yml
+Dockerfile
+
+# Other files
+.dockerignore
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
index 7d17a9e..11299e2 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,13 +1,16 @@
# Use nginx to serve the static HTML file
FROM nginx:alpine
-# Copy the HTML file to nginx's default serving directory
+# Copy the main application file
COPY tax.html /usr/share/nginx/html/index.html
-# Copy JavaScript files for vehicle autocomplete system
+# Copy required JavaScript files for vehicle database functionality
COPY vehicle-database.js /usr/share/nginx/html/vehicle-database.js
COPY vehicle-search.js /usr/share/nginx/html/vehicle-search.js
+# Copy nginx configuration if needed (optional optimization)
+# COPY nginx.conf /etc/nginx/nginx.conf
+
# Expose port 80
EXPOSE 80
diff --git a/docker-compose.yml b/docker-compose.yml
index 065e20d..15bafa9 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,5 +1,3 @@
-version: '3.8'
-
services:
tax-calc:
build: .
diff --git a/tax-old.html b/tax-old.html
deleted file mode 100644
index 82d039a..0000000
--- a/tax-old.html
+++ /dev/null
@@ -1,1922 +0,0 @@
-
-
-
-
Calculation Assumptions
-
• Pension calculation: 60% (single) or 75% (married) of average career salary
+
• Pension calculation: 75% (married with dependent spouse) or 60% (all other statuses) of average career salary
• Employee RSZ contribution: 13.07% (7.5% for pension)
• CO2 coefficients for 2025: Diesel 67g/km, Petrol 82g/km
• Minimum BIK: €1,650/year
@@ -1027,7 +1052,7 @@
"results.title": "Monthly Pension Impact by Vehicle Type",
"chart.title": "Year-by-Year Projection",
"assumptions.title": "Calculation Assumptions",
- "assumptions.details": "• Pension calculation: 60% (single) or 75% (married) of average career salary
• Employee RSZ contribution: 13.07% (7.5% for pension)
• CO2 coefficients for 2025: Diesel 67g/km, Petrol 82g/km
• Minimum BIK: €1,650/year
• Electric vehicles: 4% coefficient (minimum)
• Solidarity contribution factor 2025: 2.75x
• Calculations based on current regulations",
+ "assumptions.details": "• Pension calculation: 75% (married with dependent spouse) or 60% (all other statuses) of average career salary
• Employee RSZ contribution: 13.07% (7.5% for pension)
• CO2 coefficients for 2025: Diesel 67g/km, Petrol 82g/km
• Minimum BIK: €1,650/year
• Electric vehicles: 4% coefficient (minimum)
• Solidarity contribution factor 2025: 2.75x
• Calculations based on current regulations",
"filter.year": "Year",
"filter.fuelType": "Fuel Type",
"filter.priceRange": "Price Range",
@@ -1138,7 +1163,7 @@
"results.title": "Impact Mensuel sur la Pension par Type de Véhicule",
"chart.title": "Projection Année par Année",
"assumptions.title": "Hypothèses de Calcul",
- "assumptions.details": "• Calcul de pension : 60% (célibataire) ou 75% (marié) du salaire moyen de carrière
• Cotisation RSZ employé : 13,07% (7,5% pour pension)
• Coefficients CO2 pour 2025 : Diesel 67g/km, Essence 82g/km
• AEN minimum : €1,650/an
• Véhicules électriques : coefficient 4% (minimum)
• Facteur contribution solidarité 2025 : 2,75x
• Calculs basés sur la réglementation actuelle",
+ "assumptions.details": "• Calcul de pension : 75% (marié avec conjoint à charge) ou 60% (tous autres statuts) du salaire moyen de carrière
• Cotisation RSZ employé : 13,07% (7,5% pour pension)
• Coefficients CO2 pour 2025 : Diesel 67g/km, Essence 82g/km
• AEN minimum : €1,650/an
• Véhicules électriques : coefficient 4% (minimum)
• Facteur contribution solidarité 2025 : 2,75x
• Calculs basés sur la réglementation actuelle",
"filter.year": "Année",
"filter.fuelType": "Type de Carburant",
"filter.priceRange": "Gamme de Prix",
@@ -1249,7 +1274,7 @@
"results.title": "Maandelijkse Pensioenimpact per Voertuigtype",
"chart.title": "Jaar-op-Jaar Projectie",
"assumptions.title": "Berekeningsveronderstellingen",
- "assumptions.details": "• Pensioenberekening: 60% (alleenstaand) of 75% (getrouwd) van gemiddeld loopbaansalaris
• Werknemer RSZ bijdrage: 13,07% (7,5% voor pensioen)
• CO2 coëfficiënten voor 2025: Diesel 67g/km, Benzine 82g/km
• Minimum VAA: €1,650/jaar
• Elektrische voertuigen: 4% coëfficiënt (minimum)
• Solidariteitsbijdrage factor 2025: 2,75x
• Berekeningen gebaseerd op huidige regelgeving",
+ "assumptions.details": "• Pensioenberekening: 75% (getrouwd met afhankelijke partner) of 60% (alle andere statussen) van gemiddeld loopbaansalaris
• Werknemer RSZ bijdrage: 13,07% (7,5% voor pensioen)
• CO2 coëfficiënten voor 2025: Diesel 67g/km, Benzine 82g/km
• Minimum VAA: €1,650/jaar
• Elektrische voertuigen: 4% coëfficiënt (minimum)
• Solidariteitsbijdrage factor 2025: 2,75x
• Berekeningen gebaseerd op huidige regelgeving",
"filter.year": "Jaar",
"filter.fuelType": "Brandstoftype",
"filter.priceRange": "Prijsklasse",
@@ -1444,8 +1469,6 @@
return fuelTranslations[fuelType] || fuelType;
}
- // Removed switchTab function - no longer using tabs
-
// Progress monitoring functions
function checkEssentialFields() {
const requiredFields = ['gross-salary', 'current-age', 'tax-rate', 'marital-status', 'lease-duration'];
@@ -1459,7 +1482,6 @@
}
}
- // Step indicators removed - no need to update status
if (allFilled) {
enableVehicleSelection();
} else {
@@ -1471,8 +1493,6 @@
return allFilled;
}
- // Step status function removed - no longer needed without step indicators
-
function enableVehicleSelection() {
const vehicleSection = document.getElementById('vehicle-section');
if (vehicleSection) {