Radasin• 620
@Radasin
Posted
Id's should be unique, you can remove id from clone by using clone.removeAttribute("id");
.
Use rem, em or % instead of px. Don't style sections, or any element that you can have more then once in html, give them a class. You can use the fetch function to get the data from json:
fetch("./data.json").then((response) => {
return response.json();
}).then( (data) => {
//read the parsed json data
));
Marked as helpful
0