body {
background-image:
}
What would go in here?
const cover = document.querySelector("");
(function manageBackground() {
"use strict";
function hide(el) {
el.classList.add("hide");
}
function backClickHandler(evt) {
const back = evt.currentTarget;
hide(back);
}
const cover = document.querySelector("");
cover.addEventListener("click", backClickHandler);
}());
I think I figured out what I needed to do.
I just needed to add this line in:
document.body.style.backgroundImage= "none";
(function manageBackground() {
"use strict";
function backClickHandler(evt) {
document.body.style.backgroundColor = "green";
document.body.style.backgroundImage= "none";
}
const back = document.querySelector(".jacketa");
back.addEventListener("click", backClickHandler);
}());
system
Closed
3
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.