From 819fb9ca5082175f4afc595766e75dd2f045395b Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 13 Nov 2024 20:25:55 +0200 Subject: Style update, refactoring with generator usage, bugfixes --- src/js/ui/footer.js | 41 +++++++++++++++++++++++++++++++++++++++++ src/js/ui/mainLayout.js | 14 ++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 src/js/ui/footer.js create mode 100644 src/js/ui/mainLayout.js (limited to 'src/js/ui') diff --git a/src/js/ui/footer.js b/src/js/ui/footer.js new file mode 100644 index 0000000..a639d94 --- /dev/null +++ b/src/js/ui/footer.js @@ -0,0 +1,41 @@ +var footer = { + element:"div", + id:"footer", + innerHTML:[ + { + element:"div", + innerHTML:[ + {element:"p", innerText:"Arching Kaos 2019-2024"}, + {element:"a", target:"_blank", href:"https://github.com/arching-kaos/arching-kaos-tools", innerText:"Tools"}, + {element:"a", target:"_blank", href:"https://arching-kaos.org", innerText:"Org"}, + {element:"a", target:"_blank", href:"https://arching-kaos.net", innerText:"Net"}, + ] + }, + { + element:"span", + innerText:"::" + }, + + { + element:"div", + innerHTML:[ + {element:"a", target:"_blank", href:"https://github.com/arching-kaos/arching-kaos-web-ui/issues/new/choose", innerText:"Report an issue"}, + ] + }, + { + element:"span", + innerText:"::" + }, + { + element:"div", + innerHTML:[ + { + element:"p", + innerHTML:"Fra Kaotisk Hund med kjærlighet. Donate" + } + ] + } + ] +}; + +makeElement(footer, document.querySelector('.footer')); diff --git a/src/js/ui/mainLayout.js b/src/js/ui/mainLayout.js new file mode 100644 index 0000000..f7adeae --- /dev/null +++ b/src/js/ui/mainLayout.js @@ -0,0 +1,14 @@ +var scripts = [ + { + element:"script", + src:"./js/ui/header.js" + }, + { + element:"script", + src:"./js/ui/footer.js" + } +] +for ( var i = 0; i < scripts.length; i++ ) +{ + makeElement(scripts[i], root.body); +} -- cgit v1.2.3