MapComplete/src/index_theme.ts.template

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
795 B
Text
Raw Normal View History

import MetaTagging from "./src/Logic/MetaTagging"
2025-01-23 15:05:44 +01:00
import ThemeConfig from "./src/Models/ThemeConfig/ThemeConfig"
2025-01-23 14:27:02 +01:00
import SingleThemeGui from "./src/UI/SingleThemeGui.svelte"
2024-02-20 02:01:08 +01:00
async function main() {
MetaTagging.setThemeMetatagging(new ThemeMetaTagging())
// LAYOUT.ADD_LAYERS
// LAYOUT.ADD_CONFIG
2024-06-18 03:33:11 +02:00
const target = document.getElementById("maindiv")
const childs = Array.from(target.children)
new SingleThemeGui({
2024-06-18 03:33:11 +02:00
target,
2025-01-23 15:05:44 +01:00
props: { theme: new ThemeConfig(theme, true, {definitionRaw: theme}) },
})
2024-06-18 03:33:11 +02:00
childs.forEach(ch => target.removeChild(ch))
2024-03-21 22:39:36 +01:00
Array.from(document.getElementsByClassName("delete-on-load")).forEach(el => {
el.parentElement.removeChild(el)
})
2024-02-20 02:01:08 +01:00
}
main()