Basically I what i want to create is where when a certain a div is clicked, the innerHTML changes, but i want it to go back after the click may after one second
function setWheels() {
document.querySelector(".blue-wheel").innerHTML = "<img src='blue-dark.svg.svg' id='blue-wheel-id' onclick='buttonEvent()'>";
}
function buttonEvent() {
document.querySelector(".blue-wheel").innerHTML = "<img src='blue-light.svg.svg'>";
}
right now as soon as the page loads, the setWheels function is called leading to the innerHTML to be that specific image. And when clicked it becomes the new one per the buttonEvent() function but it stays on that image and I would like it to go back to the other image after around one second. For reference other features will be added onto the buttonEvent such as audio may be more than one second