From 1291b1159ac4ce8340bd1ddc4456b2068a5b19ff Mon Sep 17 00:00:00 2001 From: "Diego F. Goberna" Date: Tue, 11 Dec 2018 03:34:25 +0100 Subject: [PATCH] fixed lightbox closing --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 9de330d..7daf997 100644 --- a/index.html +++ b/index.html @@ -30,7 +30,7 @@
- +
@@ -113,6 +113,7 @@ let lb; function setupLb () { lb = document.getElementById('lightbox'); + lb.addEventListener('click', closeLb); const sshots = document.querySelectorAll('.screenshots>img'); for (let i = 0; i < sshots.length; i++){ sshots[i].addEventListener('click', showImg);