This commit is contained in:
Michał Gdula 2022-06-11 23:53:44 +01:00
parent e153e5bfb3
commit de7a54195e
9 changed files with 62 additions and 30 deletions

View file

@ -1,14 +1,7 @@
document.querySelectorAll(".gallery div img").forEach(image =>{
image.onclick = () =>{
document.querySelector(".fullScreenImage").style.display= "block";
document.querySelector(".fullScreenImage img").src = image.getAttribute("src");
document.querySelector("html").style.overflow= "hidden";
}
});
document.querySelector(".fullScreenImage span").onclick = () =>{
document.querySelector(".fullScreenImage").style.display= "none";
document.querySelector("html").style.overflow= "auto";
document.querySelector(".manualError").onclick = () =>{
document.querySelector(".manualError").style.top= "5em";
document.querySelector(".manualError").style.width= "160px";
document.querySelector(".manualError").style.height= "90px";
}
console.log("UwU")