seperate loader

This commit is contained in:
buzz-lightsnack-2007 2024-04-23 21:53:44 +08:00
parent 75a98bd384
commit d52847635f
2 changed files with 60 additions and 6 deletions

View file

@ -4,22 +4,20 @@
// Import modules.
import {read, forget} from "/scripts/secretariat.js";
import windowman from "/scripts/GUI/windowman.js";
import Window from "/scripts/GUI/window.js";
import Page from "/scripts/pages/page.js";
import texts from "/scripts/strings/read.js";
import Loader from "/scripts/GUI/loader.js";
class Page_Popup extends Page {
constructor() {
super();
(this.events) ? this.events() : false;
this.content();
};
content() {
if (document.querySelector(`[data-text="loading_text"]`)) {
document.querySelector(`[data-text="loading_text"]`).textContent = (new texts())
}
}
this.loading = new Loader();
};
events() {
(document.querySelector(`[data-action="open,settings"]`)) ? document.querySelector(`[data-action="open,settings"]`).addEventListener("click", () => {