aboutsummaryrefslogtreecommitdiff
path: root/src/js/ui/sections/stellarBalancesSection.js
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-11-30 16:13:00 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-11-30 16:13:00 +0200
commit2cd1f36b60e191a0e3cdc1117f552c6dd5d4fcc7 (patch)
tree3cb08c403acd2f9c4cdcaa1a5ccae68c595e253b /src/js/ui/sections/stellarBalancesSection.js
parent3068b57c4841491ae885e555cc5560a1c2f80a9c (diff)
downloadarching-kaos-web-ui-2cd1f36b60e191a0e3cdc1117f552c6dd5d4fcc7.tar.gz
arching-kaos-web-ui-2cd1f36b60e191a0e3cdc1117f552c6dd5d4fcc7.tar.bz2
arching-kaos-web-ui-2cd1f36b60e191a0e3cdc1117f552c6dd5d4fcc7.zip
create navigation header for all pages
Diffstat (limited to 'src/js/ui/sections/stellarBalancesSection.js')
-rw-r--r--src/js/ui/sections/stellarBalancesSection.js28
1 files changed, 16 insertions, 12 deletions
diff --git a/src/js/ui/sections/stellarBalancesSection.js b/src/js/ui/sections/stellarBalancesSection.js
index 867599f..9b68b5a 100644
--- a/src/js/ui/sections/stellarBalancesSection.js
+++ b/src/js/ui/sections/stellarBalancesSection.js
@@ -9,22 +9,26 @@ import { makeElement } from "../../arching-kaos-generator.js";
export function stellarBalancesSection()
{
+ var whereAmI = {
+ element: "div",
+ className: "where-am-i",
+ innerHTML: [
+ { element: "img", src:"./img/logo.png", onclick:"menusel({id:'#/welcome-section'})"},
+ { element: "span", innerText:">"},
+ { element: "h2", innerText:"Stellar"},
+ { element: "span", innerText:">"},
+ { element: "h2", innerText: "Balances" }
+ ]
+ };
var stellarBalancesSection = {
element: "div",
id: "stellar-balances",
- innerHTML: `
- <div class="where-am-i">
- <img src="./img/logo.png" onclick="menusel({id:'#/welcome-section'})"/>
- <span>&gt;</span>
- <h2>Stellar</h2>
- <span>&gt;</span>
- <h2>Balances</h2>
- </div>
- <em id="stellar-balances-not-found">No data found (yet?)!</em>
- <table id="stellar-balances-table"></table>
- `
+ innerHTML: [
+ whereAmI,
+ { element: "em", id: "stellar-balances-not-found", innerText: "No data found (yet?)!" },
+ { element: "table", id:"stellar-balances-table" }
+ ]
};
-
makeElement(stellarBalancesSection, document.querySelector('.main'));
}
// @license-end