• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import { View } from "./view";
2
3export class InfoView extends View {
4
5  constructor(idOrContainer: HTMLElement | string) {
6    super(idOrContainer);
7    fetch("info-view.html")
8      .then(response => response.text())
9      .then(htmlText => this.divNode.innerHTML = htmlText);
10  }
11
12  createViewElement(): HTMLElement {
13    const infoContainer = document.createElement("div");
14    infoContainer.classList.add("info-container");
15    return infoContainer;
16  }
17}
18