Aevann 2024-08-03 20:40:24 +03:00
parent 5da7433425
commit f822c39652
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ document.addEventListener("click", function(e) {
if (element instanceof HTMLImageElement && (element.alt.startsWith('![](') || element.classList.contains('img'))) {
expandImage(element.dataset.expandedUrl)
all_images = element.parentElement.parentElement.parentElement.parentElement.getElementsByClassName('img')
all_images = element.parentElement.parentElement.parentElement.parentElement.querySelectorAll('.img, [alt^="![]("]')
if (all_images.length != 0) {
last_img_index = all_images.length - 1
position = [].indexOf.call(all_images, element);