mirror of
https://codeberg.org/vegvisir/website.git
synced 2025-09-14 08:53:42 +02:00
13 lines
No EOL
296 B
JavaScript
13 lines
No EOL
296 B
JavaScript
import { CustomElement } from "./CustomElement.mjs";
|
|
|
|
export const TAG_NAME = "code-demo";
|
|
|
|
class HTMLCodeDemoElement extends CustomElement {
|
|
constructor() {
|
|
super();
|
|
|
|
this.importElementStylesheet(this.constructor.name);
|
|
}
|
|
}
|
|
|
|
globalThis.customElements.define(TAG_NAME, HTMLCodeDemoElement); |