Updated gallery.js

This commit is contained in:
tom5079
2022-01-20 15:22:58 +09:00
parent 0453e7d2b6
commit 620a3ee324
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ async function get_gallery(galleryid) {
Array.from(doc.querySelectorAll('#lang-list a')).forEach(elm => lang_list[elm.innerText] = elm.getAttribute('href').slice(11, -5)); Array.from(doc.querySelectorAll('#lang-list a')).forEach(elm => lang_list[elm.innerText] = elm.getAttribute('href').slice(11, -5));
const cover = doc.querySelector('.cover img').src; const cover = doc.querySelector('.cover img').src.replace('bigtn', 'webpbigtn').replace(/.jpg$/, '.webp');
const title = doc.querySelector('.gallery h1 a').innerText; const title = doc.querySelector('.gallery h1 a').innerText;
const artists = Array.from(doc.querySelectorAll('.gallery h2 a'), elm => elm.innerText); const artists = Array.from(doc.querySelectorAll('.gallery h2 a'), elm => elm.innerText);

View File

@@ -1 +1 @@
0.0.7-DEV04 0.0.7-DEV05