Summary Files Commits Branches @commit @diff @stats
path: root / src / scripts / image-show.js
diff options
context:
space:
mode:
Commit7fdcdc6557d29678aedf936829f3169e006987b7 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-03-09 14:07:44 +0200
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-03-09 14:07:44 +0200
Files6be50bb1b2c405a7e0a3dab1fd3abd6a20ed9a75 /src/scripts/image-show.js
syndamia.com-7fdcdc6557d29678aedf936829f3169e006987b7.tar
syndamia.com-7fdcdc6557d29678aedf936829f3169e006987b7.tar.gz
syndamia.com-7fdcdc6557d29678aedf936829f3169e006987b7.zip
Parent0838de8e6861f2031160d39f7dfb7fe937a16b79 (diff)
Added simple functionality
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;
}
}