Replies: 1 comment
-
Just init a Viewer instance on the parent container of all the images. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Use for anki tamplate
If I ues DOM I can only get one pic or a list, but I want to get the whole gallary. What should I do to make this with a loop statement and bind the click event to each image?
var images = document.getElementsByTagName("img");
for (let i = 0; i < images.length; i++) {
images[i].addEventListener('click', function() {
}
Beta Was this translation helpful? Give feedback.
All reactions