1
0

Generalise img

This commit is contained in:
2022-03-29 23:57:08 +00:00
parent 4c09bffd41
commit d0257c4a00
29 changed files with 14 additions and 14 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

View File

@@ -6,16 +6,16 @@ window.addEventListener('load', () => {
const elem = funkoTemplate.content.cloneNode(true);
const special = ['img', 'href'];
elem.querySelector('.funko__img').setAttribute('src', `img/${funko.img}.jpg`);
elem.querySelector('.funko__img').setAttribute('src', `../img/${funko.img}.jpg`);
elem.querySelector('.funko__readmore').setAttribute('href', `/${funko.href}.html`);
for (const [k, v] of Object.entries(funko)) {
if (special.includes(k))
continue;
elem.querySelector(`.funko__${k}`).innerHTML = v;
}
funkoContainer.appendChild(elem);
});
});
});