+
+
+
+ For the following atrocity crimes:
+
+
+
+
+
+
+
+ PREFERABLE ALIVE WITH ALL OF LIMBS
+
+
+ Reward from friends:
+
+
+
+
+
diff --git a/src/index.ts b/src/index.ts
index 3f48a42..f11de27 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -1,12 +1,92 @@
+import html from './index.html';
+import { FontLoader } from './font-loader';
+
export class WantedPrintForm extends HTMLElement {
+ public readyEventName = 'form-ready';
+ public errorEventName = 'form-error';
+
+ public wantedName!: string;
+ public image!: File;
+ public atrocityCrimes!: string;
+ public reward!: string;
+
+ private componentShadowRoot!: ShadowRoot;
+
constructor() {
super();
- const componentShadowRoot = this.attachShadow({ mode: 'open' });
+ this.componentShadowRoot = this.attachShadow({ mode: 'open' });
const template = document.createElement('template');
- template.innerHTML = 'Wanted serious offender!';
- componentShadowRoot.appendChild(template.content.cloneNode(true));
+ template.innerHTML = html;
+ this.componentShadowRoot.appendChild(template.content.cloneNode(true));
+ }
+
+ public async connectedCallback(): Promise