mirror of
https://github.com/Fluffy-Bean/GameExpo.git
synced 2025-06-07 02:43:12 +00:00
:3
This commit is contained in:
parent
e153e5bfb3
commit
de7a54195e
9 changed files with 62 additions and 30 deletions
14
fullscreenViewer.js
Normal file
14
fullscreenViewer.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
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";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue