Full rebase

This commit is contained in:
Daniel
2023-10-14 01:43:36 +02:00
parent 63f51d9cac
commit 8c162678a7
14 changed files with 393 additions and 476 deletions
+26
View File
@@ -0,0 +1,26 @@
import App from "../../App"
export default class Main {
constructor() {
this.app = new App()
this.config = this.app.config
this.init()
}
init() {
document.title = this.config.get("name")
this.initBackgrounds()
}
initBackgrounds() {
this.backgrounds = document.getElementById("background")
for (let i = 0; i < 2; i++) {
let img = document.createElement("img")
this.backgrounds.appendChild(img)
}
this.backgrounds = this.backgrounds.children
this.backgrounds[0].src = this.config.get("wallpaper")
this.backgrounds[1].src = this.config.get("wallpaper_dark")
}
}