start modularisation and breaking down the monofile

This commit is contained in:
Alphons Joseph
2025-03-12 21:45:23 +08:00
parent 3c65e6d6c5
commit c9f0f9cf16
25 changed files with 2284 additions and 2192 deletions
@@ -0,0 +1,23 @@
export function CreateBackground() {
var bkCheck = document.getElementsByClassName("bg")
if (bkCheck.length !== 0) {
return
}
// Creating and inserting 3 divs containing the background applied to the pages
var bklocation = document.getElementById("container")
var menu = document.getElementById("menu")
var bk = document.createElement("div")
bk.classList.add("bg")
bklocation!.insertBefore(bk, menu)
var bk2 = document.createElement("div")
bk2.classList.add("bg")
bk2.classList.add("bg2")
bklocation!.insertBefore(bk2, menu)
var bk3 = document.createElement("div")
bk3.classList.add("bg")
bk3.classList.add("bg3")
bklocation!.insertBefore(bk3, menu)
}