aboutsummaryrefslogtreecommitdiff
path: root/src/js/ui/footer.js
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-11-29 16:23:39 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-11-29 16:23:39 +0200
commitafcedd44615d20423d58f4d9c9d8cfa3838a54d4 (patch)
treee16cd7f2eb4040f7b237baa45aa3f8f80516dcc4 /src/js/ui/footer.js
parent084e3ce6efc49c2d43ce9b44d96e430f8057848e (diff)
downloadarching-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/footer.js')
-rw-r--r--src/js/ui/footer.js81
1 files changed, 42 insertions, 39 deletions
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 <a target=\"_blank\" href=\"https://www.kaotisk-hund.com\">Kaotisk Hund</a> med kjærlighet. <a href=\"bitcoin:BC1QYL9K5KDLSLJAED9PZCJJX0CPGZVY9LWY427SD4\">Donate</a>"
- }
- ]
- }
- ]
-};
+ {
+ 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 <a target=\"_blank\" href=\"https://www.kaotisk-hund.com\">Kaotisk Hund</a> med kjærlighet. <a href=\"bitcoin:BC1QYL9K5KDLSLJAED9PZCJJX0CPGZVY9LWY427SD4\">Donate</a>"
+ }
+ ]
+ }
+ ]
+ };
-makeElement(footer, document.querySelector('.footer'));
+ makeElement(footer, document.querySelector('.footer'));
+}