Skip to content

πŸ’ƒ Free CC0 mannequin pose reference library for AI image tools (Nano Banana, ChatGPT, ComfyUI, Midjourney) β€” 250+ poses Γ— 5 angles in line art, names in ja/zh/en/ko

fix(web): attach the lightbox gap-box handler on load

wqugurub2acceac5e76
diff --git a/web/app.js b/web/app.js
index 5d5defff..50f851af 100644
--- a/web/app.js
+++ b/web/app.js
@@ -494,7 +494,6 @@
return '<figure class="lb-cell ' + kind + '"><img src="' + src(kind, 'w900', f) + '" alt="' + esc(p.id + ' ' + nameOf(p) + ' Β· ' + T.views[LB.v] + ' Β· ' + label) + '">' +
'<figcaption>' + esc(label) + '</figcaption></figure>';
}
- function renderLb() {
// Lightbox gap: the same angle in the other medium is the best way out when it exists, else the nearest angle.
function lbGapHtml(p, arr, photo, T) {
const v = LB.v;
@@ -509,6 +508,7 @@
'<span class="gap-sub">' + esc(photo ? (other ? T.gapPhotoSub : T.gapOther) : T.gapLineSub) + '</span>' +
(acts.length ? '<span class="gap-acts">' + acts.join('') + '</span>' : '');
}
+ function renderLb() {
const T = t();
const p = byId.get(LB.id);
const m = LB.medium;
@@ -592,13 +592,13 @@
const b = e.target.closest('[data-lbv]');
if (b && !b.disabled) { LB.v = +b.dataset.lbv; renderLb(); }
});
- $('lbMedium').addEventListener('click', (e) => {
$('lbMissing').addEventListener('click', (e) => {
const go = e.target.closest('[data-lbgo]');
const gm = e.target.closest('[data-lbgm]');
if (go) { LB.v = +go.dataset.lbgo; renderLb(); }
else if (gm) openLb(LB.id, LB.v, gm.dataset.lbgm);
});
+ $('lbMedium').addEventListener('click', (e) => {
const b = e.target.closest('[data-lbm]');
if (b && !b.disabled) openLb(LB.id, LB.v, b.dataset.lbm);
});