24 lines
417 B
JavaScript
24 lines
417 B
JavaScript
css(`
|
|
app-window {
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background-color: var(--main);
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
display: none;
|
|
}
|
|
`)
|
|
|
|
export default class AppWindow extends HTMLElement {
|
|
|
|
open(app) {
|
|
this.style.display = "block"
|
|
}
|
|
|
|
close() {
|
|
this.style.display = "none"
|
|
}
|
|
}
|
|
|
|
customElements.define("app-window", AppWindow) |