Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Day #13 - Translator App/js/script.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fromText = document.querySelector(".from-text");
const toText = document.querySelector(".to-text");
const exchageIcon = document.querySelector(".exchange");
const exchangeIcon = document.querySelector(".exchange");
const selectTag = document.querySelectorAll("select");
const icons = document.querySelectorAll(".row i");
const translateBtn = document.querySelector("button");
Expand All @@ -13,7 +13,7 @@ selectTag.forEach((tag, id) => {
}
});

exchageIcon.addEventListener("click", () => {
exchangeIcon.addEventListener("click", () => {
let tempText = fromText.value,
tempLang = selectTag[0].value;
fromText.value = toText.value;
Expand Down Expand Up @@ -67,4 +67,4 @@ icons.forEach(icon => {
speechSynthesis.speak(utterance);
}
});
});
});