feat(ipub): ipub-image element

This commit is contained in:
Guz
2025-10-17 15:36:39 -03:00
parent d556b0eefe
commit 11456db9c4
3 changed files with 18 additions and 1 deletions

View File

@@ -126,10 +126,14 @@ class IPUBContent extends HTMLElement {
static elementName = "ipub-content";
}
class IPUBImage extends HTMLElement {
static elementName = "ipub-image";
}
globalThis.addEventListener("load", () => {
console.info("IPUB: STARTING DEFINITIONS");
[IPUBBackground, IPUBContent].forEach((e) => {
[IPUBBackground, IPUBContent, IPUBImage].forEach((e) => {
console.info(`IPUB: Defining custom element <${e.elementName}>`);
globalThis.customElements.define(e.elementName, e);
});