feat(ipub): ipub-image element
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user