From afcedd44615d20423d58f4d9c9d8cfa3838a54d4 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 29 Nov 2024 16:23:39 +0200 Subject: Major refactoring --- src/js/ui/footer.js | 81 +++++++++++++++++++++++++++-------------------------- 1 file changed, 42 insertions(+), 39 deletions(-) (limited to 'src/js/ui/footer.js') diff --git a/src/js/ui/footer.js b/src/js/ui/footer.js index a611b59..fbde422 100644 --- a/src/js/ui/footer.js +++ b/src/js/ui/footer.js @@ -1,43 +1,46 @@ import { makeElement } from "../arching-kaos-generator.js"; -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:"::" - }, +export function footerSpawn() +{ + 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" - } - ] - } - ] -}; + { + 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')); + makeElement(footer, document.querySelector('.footer')); +} -- cgit v1.2.3