From bbebe94e48217bc3cc10058668982fd21601f378 Mon Sep 17 00:00:00 2001 From: "d.viti" Date: Sat, 6 Sep 2025 15:18:42 +0200 Subject: [PATCH] Refactor calculators for improved clarity and maintainability - Reformat HTML for readability and semantic structure - Refactor JavaScript for modularity and robustness - Improve language switching and translation logic - Enhance input validation and error handling - Add missing DOM element checks and warnings - Update UI rendering for results and utility lists - Remove unused code and streamline event listeners --- pages/cost-calculator.html | 2098 ++++++++++++++++++++++----------- pages/savings-calculator.html | 1977 ++++++++++++++++++++----------- 2 files changed, 2720 insertions(+), 1355 deletions(-) diff --git a/pages/cost-calculator.html b/pages/cost-calculator.html index 9252100..46fb070 100644 --- a/pages/cost-calculator.html +++ b/pages/cost-calculator.html @@ -1,710 +1,1444 @@ - + - - - - Calcolatore Costi Elettricità Avanzato - - - - - - - + + + + Calcolatore Costi Elettricità Avanzato + + + + + + + +
+
+
+ +
+

+ Calcolo Avanzato Consumi e Costi Elettricità +

+

+ Includi fotovoltaico e batteria per una stima più completa. +

+
-
-
-
- -
-

Calcolo Avanzato Consumi e Costi Elettricità

-

Includi fotovoltaico e batteria per una stima più completa.

-
+
+ +
+

+ Inserisci i Dati +

-
- -
-

Inserisci i Dati

- -
-
- - -
-
- - - - - -
- -
- - -
-
- - -
- - -
-
- - +
+
+ +
-