illegally-smol
Version:
Illegally smol cat as a web component. ᓚᘏᗢ
14 lines (10 loc) • 383 B
JavaScript
const template = document.createElement('template');
template.innerHTML = '<small>ᓚᘏᗢ</small>';
export default class IllegallySmol extends HTMLElement {
constructor() {
super();
this._shadowRoot = this.attachShadow({ mode: 'open' });
this._shadowRoot.appendChild(template.content.cloneNode(true));
}
}
customElements.define('illegally-smol', IllegallySmol);