diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-11-29 16:23:39 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-11-29 16:23:39 +0200 |
commit | afcedd44615d20423d58f4d9c9d8cfa3838a54d4 (patch) | |
tree | e16cd7f2eb4040f7b237baa45aa3f8f80516dcc4 /src/js/ui/header.js | |
parent | 084e3ce6efc49c2d43ce9b44d96e430f8057848e (diff) | |
download | arching-kaos-web-ui-afcedd44615d20423d58f4d9c9d8cfa3838a54d4.tar.gz arching-kaos-web-ui-afcedd44615d20423d58f4d9c9d8cfa3838a54d4.tar.bz2 arching-kaos-web-ui-afcedd44615d20423d58f4d9c9d8cfa3838a54d4.zip |
Major refactoring
Diffstat (limited to 'src/js/ui/header.js')
-rw-r--r-- | src/js/ui/header.js | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/src/js/ui/header.js b/src/js/ui/header.js index 18d8c2e..27c16ac 100644 --- a/src/js/ui/header.js +++ b/src/js/ui/header.js @@ -1,16 +1,19 @@ import { makeElement } from "../arching-kaos-generator.js"; -var header = { - element: "div", - id: 'header', - className: 'header', - innerHTML: [ - { element: "a", id:"logo-button", innerHTML:[ - {element: "img", src:"./img/header-logo.png" } - ]}, - { element: "h1", style:"text-align: center;", innerText: "Arching Kaos"} - ], - onclick: 'menusel({id:"#/welcome-section"});' -} +export function headerSpawn() +{ + var header = { + element: "div", + id: 'header', + className: 'header', + innerHTML: [ + { element: "a", id:"logo-button", innerHTML:[ + {element: "img", src:"./img/header-logo.png" } + ]}, + { element: "h1", style:"text-align: center;", innerText: "Arching Kaos"} + ], + onclick: 'menusel({id:"#/welcome-section"});' + } -makeElement(header, document.querySelector('#logo-title-placeholder')); + makeElement(header, document.querySelector('#logo-title-placeholder')); +} |