You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
323 B
JavaScript
13 lines
323 B
JavaScript
// Wait for Flask, Jinja2, and Paged.js to do their things
|
|
setTimeout(getImages, 2500);
|
|
|
|
function getImages() {
|
|
const images = document.querySelectorAll("[data-image]");
|
|
Array.from(images).forEach((img) => moveImage(img));
|
|
}
|
|
|
|
function moveImage(img) {
|
|
let parent = img.closest(".pagedjs_sheet");
|
|
parent.prepend(img);
|
|
}
|