import { readFile, updateHTMLOptions, showRelatedHTML, syncHTMLValue, insertHTMLChild, } from '@/components/helper' import '@/components/background.css' import buildConfig from '!/config.json' export default class Background { #el = document.createElement('div') #parentEl #videoEl #default = { location: `${import.meta.env.BASE_URL}assets/${buildConfig.background_folder}/`, image: buildConfig.default_background, } #config = { video: { name: null, volume: 100, }, useVideo: false, name: null, } constructor(el) { this.#parentEl = el this.#el.id = 'background-box' this.image = this.#default.location + this.#default.image this.#el.innerHTML = `