diff --git a/index.html b/index.html
index 6a14c28..76262ec 100644
--- a/index.html
+++ b/index.html
@@ -76,8 +76,6 @@
color: #666;
font-size: 12px;
}
-
-
-
-
-
+
Exchange Rate Calculator
+
+
+
For the best experience, add this web app to your home screen:
1. Tap the Share button.
2. Tap Add to Home Screen.
-
-
+
+
-
Exchange Rate Calculator
-
+
@@ -158,12 +147,12 @@
if (euro) {
const result = (euro * exchangeRate).toFixed(2);
const calculation = `${euro} Euro = ${result} Algerian Dinar`;
- document.getElementById("result").innerHTML = calculation;
+ document.getElementById("result").textContent = calculation;
recentCalculations.unshift(calculation);
} else if (dinar) {
const result = (dinar / exchangeRate).toFixed(2);
const calculation = `${dinar} Algerian Dinar = ${result} Euro`;
- document.getElementById("result").innerHTML = calculation;
+ document.getElementById("result").textContent = calculation;
recentCalculations.unshift(calculation);
}
recentCalculations = recentCalculations.slice(0, 5);
@@ -171,7 +160,7 @@
})
.catch(error => {
console.log(error);
- document.getElementById("result").innerHTML = "Oops, something went wrong! Please try again later.";
+ document.getElementById("result").textContent = "Oops, something went wrong! Please try again later.";
});
}
@@ -185,51 +174,24 @@
calculationList.appendChild(li);
});
}
-
-
-
-
-
-