- To offset the tax difference at 17500km/year,
- a petrol car would need to consume at least 0.00L/100km,
- or the diesel price should be at least 0.00€/L.
-
+ To offset the tax difference at 17500km/year,
+ a petrol car would need to consume at least 0.00L/100km,
+ or the diesel price should be at least 0.00€/L.
+
+
+
+
+
+
Annual Distance
+
Diesel Total
+
Petrol Total
+
Difference
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/languages.js b/languages.js
new file mode 100644
index 0000000..48d2814
--- /dev/null
+++ b/languages.js
@@ -0,0 +1,40 @@
+const langData = {
+ en: {
+ header: "Car Cost Comparison",
+ dTaxLabel: "Diesel Annual Tax (€)",
+ dPriceLabel: "Diesel Price per Liter (€)",
+ dConsLabel: "Diesel Consumption (L/100km)",
+ pTaxLabel: "Petrol Annual Tax (€)",
+ pPriceLabel: "Petrol Price per Liter (€)",
+ pConsLabel: "Petrol Consumption (L/100km)",
+ annualKmLabel: "Your Annual Distance (km)",
+ resultText1: "To offset the tax difference at ",
+ resultText2: "km/year, a petrol car would need to consume at least ",
+ resultText3: " L/100km, or the diesel price should be at least ",
+ resultText4: "€/L.",
+ tableDistance: "Annual Distance",
+ tableDieselTotal: "Diesel Total",
+ tablePetrolTotal: "Petrol Total",
+ tableDifference: "Difference"
+ },
+
+ ru: {
+ header: "Сравнение затрат на автомобили",
+ dTaxLabel: "Годовая плата за дизель (€)",
+ dPriceLabel: "Цена дизеля за литр (€)",
+ dConsLabel: "Расход дизеля (л/100 км)",
+ pTaxLabel: "Годовая плата за бензин (€)",
+ pPriceLabel: "Цена бензина за литр (€)",
+ pConsLabel: "Расход бензина (л/100 км)",
+ annualKmLabel: "Ваш ежегодный пробег (км)",
+ resultText1: "Чтобы компенсировать разницу в налогах при ",
+ resultText2: " км в год, расход бензинового автомобиля должен быть не менее ",
+ resultText3: " л/100 км, либо цена дизеля должна быть не менее ",
+ resultText4: " €/л.",
+ tableDistance: "Ежегодная дистанция",
+ tableDieselTotal: "Общие затраты на дизель",
+ tablePetrolTotal: "Общие затраты на бензин",
+ tableDifference: "Разница"
+ }
+};
+
diff --git a/languages.json b/languages.json
deleted file mode 100644
index 69d1674..0000000
--- a/languages.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "en": {
- "header": "Car Cost Comparison",
- "dTaxLabel": "Diesel Annual Tax (€)",
- "dPriceLabel": "Diesel Price per Liter (€)",
- "dConsLabel": "Diesel Consumption (L/100km)",
- "pTaxLabel": "Petrol Annual Tax (€)",
- "pPriceLabel": "Petrol Price per Liter (€)",
- "pConsLabel": "Petrol Consumption (L/100km)",
- "annualKmLabel": "Your Annual Distance (km) for Break-even",
- "resultText": "To offset the tax difference at ",
- "tableDistance": "Annual Distance",
- "tableDieselTotal": "Diesel Total",
- "tablePetrolTotal": "Petrol Total",
- "tableDifference": "Difference"
- },
- "ru": {
- "header": "Сравнение затрат на автомобили",
- "dTaxLabel": "Годовая плата за дизель (€)",
- "dPriceLabel": "Цена дизеля за литр (€)",
- "dConsLabel": "Расход дизеля (л/100км)",
- "pTaxLabel": "Годовая плата за бензин (€)",
- "pPriceLabel": "Цена бензина за литр (€)",
- "pConsLabel": "Расход бензина (л/100км)",
- "annualKmLabel": "Ваша ежегодная дистанция (км) для компенсации",
- "resultText": "Чтобы компенсировать разницу в налогах при ",
- "tableDistance": "Ежегодная дистанция",
- "tableDieselTotal": "Итоговый расход дизеля",
- "tablePetrolTotal": "Итоговый расход бензина",
- "tableDifference": "Разница"
- }
-}
\ No newline at end of file
diff --git a/style.css b/style.css
index eff6ebb..ae071d6 100644
--- a/style.css
+++ b/style.css
@@ -141,5 +141,5 @@ th {
.button-toggle svg {
width: 100%;
height: 100%;
- color: var(--text-color);
+ fill: var(--text-color);
}