aboutsummaryrefslogtreecommitdiff
path: root/src/js/ui/header.js
blob: 51d48f69b9bc9c4f92b29fe51f1f4fa3b027668b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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"}
    ]
}

function goHomeAction()
{
    menusel({id:"#/welcome-section"});
}
makeElement(header, document.querySelector('#logo-title-placeholder'));

document.querySelector('#logo-button').addEventListener("click", goHomeAction);