mirror of
https://github.com/maikka39/Personal-Website.git
synced 2026-10-02 14:46:25 +00:00
Remove larger image view as it's broken on some browsers
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
window.addEventListener("load", () => {
|
||||
document.querySelectorAll("figure.enlargable").forEach(node => {
|
||||
node.addEventListener("click", () => {
|
||||
console.log("Hey");
|
||||
node.classList.toggle("enlarged")
|
||||
})
|
||||
})
|
||||
|
||||
const keyDown = (e) => {
|
||||
if (e.keyCode !== 27) {
|
||||
return
|
||||
}
|
||||
|
||||
document.querySelectorAll("figure.enlarged").forEach(node => {
|
||||
node.classList.remove("enlarged")
|
||||
})
|
||||
}
|
||||
|
||||
document.addEventListener('keydown', keyDown)
|
||||
})
|
||||
Reference in New Issue
Block a user