Aevann 2024-02-13 16:43:52 +02:00
parent 9d7aae2a18
commit e3770aeda3
1 changed files with 2 additions and 2 deletions

View File

@ -186,7 +186,7 @@ document.addEventListener("click", function (e) {
position += 1
if (position < num_of_images) {
element.classList.remove('d-none')
element.href = all_images[position].src
element.href = all_images[position].dataset.src
}
}
else if (element instanceof HTMLImageElement && (element.alt.startsWith('![](') || element.classList.contains('img'))) {
@ -198,7 +198,7 @@ document.addEventListener("click", function (e) {
imagenav_btn.classList.remove('d-none')
position = [].indexOf.call(all_images, element);
position += 1
imagenav_btn.href = all_images[position].src
imagenav_btn.href = all_images[position].dataset.src
}
}
else if (element.classList.contains('showmore')) {