11cb0ef41Sopenharmony_ciimport { View } from "./view"; 21cb0ef41Sopenharmony_ci 31cb0ef41Sopenharmony_ciexport class InfoView extends View { 41cb0ef41Sopenharmony_ci 51cb0ef41Sopenharmony_ci constructor(idOrContainer: HTMLElement | string) { 61cb0ef41Sopenharmony_ci super(idOrContainer); 71cb0ef41Sopenharmony_ci fetch("info-view.html") 81cb0ef41Sopenharmony_ci .then(response => response.text()) 91cb0ef41Sopenharmony_ci .then(htmlText => this.divNode.innerHTML = htmlText); 101cb0ef41Sopenharmony_ci } 111cb0ef41Sopenharmony_ci 121cb0ef41Sopenharmony_ci createViewElement(): HTMLElement { 131cb0ef41Sopenharmony_ci const infoContainer = document.createElement("div"); 141cb0ef41Sopenharmony_ci infoContainer.classList.add("info-container"); 151cb0ef41Sopenharmony_ci return infoContainer; 161cb0ef41Sopenharmony_ci } 171cb0ef41Sopenharmony_ci} 18