@wafferuSubmitted over 2 years ago
What did you find difficult while building the project?
- Using git. Which areas of your code are you unsure of?
- On functionalities Do you have any questions about best practices?
- I need a tips on the workflow.
What did you find difficult while building the project?
great work! You can use the library sweetAlert for you menssage (cdn is easy to implement).
Great work!.
You can use JavaScript to add classes.
const items = document.getElementsByClassName("ranking__score__element");
for (let i = 0; i < items.length; i++) { items[i].addEventListener( "click", function () { items[i].classList.toggle("button__active");
//remove class in the other elements in the array ranking__score
const options = document.getElementsByClassName(
"ranking__score__element"
);
for (let index = 0; index < options.length; index++) {
if (index !== i) {
options[index].classList.remove("button__active");
}
}
},
false
); }