Summary Files Commits Branches @commit @diff @stats
path: root / src / scripts / image-show.js
diff options
context:
space:
mode:
Commit568e5573ec6f7c1beb1fff58e3cc9f136bf5e8b2 (patch)
Author
 Kamen Mladenov <kamen.d.mladenov@protonmail.com>
2022-03-09 14:29:18 +0000
Committer
 Kamen Mladenov <kamen.d.mladenov@protonmail.com>
2022-03-09 14:29:18 +0000
Files51cb7075cfde39b9b861465418c9c37f7dab1c7f /src/scripts/image-show.js
syndamia.com-568e5573ec6f7c1beb1fff58e3cc9f136bf5e8b2.tar
syndamia.com-568e5573ec6f7c1beb1fff58e3cc9f136bf5e8b2.tar.gz
syndamia.com-568e5573ec6f7c1beb1fff58e3cc9f136bf5e8b2.zip
Parent0838de8e6861f2031160d39f7dfb7fe937a16b79 (diff)
Parentaeb64b5313e46bd7235bd546d4d215aecd00911b (diff)
Merge branch 'theme-changer' into 'master'
Theme changer See merge request Syndamia/syndamiadotcom!4
1 files changed, 1 insertions, 1 deletions
-rw-r--r--src/scripts/image-show.js2
diff --git a/src/scripts/image-show.js b/src/scripts/image-show.js
index 961242e..8664ef4 100644
--- a/src/scripts/image-show.js
+++ b/src/scripts/image-show.js
@@ -18,7 +18,7 @@ function clickToView() {
const images = document.getElementsByTagName('img');
for (const image of images) {
- if (image.alt !== '🔗' && image.id !== 'scrollBtn') {
+ if (image.alt !== '🔗' && !image.classList.contains('unzoomable')) {
image.onclick = clickToView;
}
}