From ad0f59fbc2dea546d1e33e2f4ee515827e698eed Mon Sep 17 00:00:00 2001 From: kaotisk Date: Tue, 3 Dec 2024 12:15:31 +0200 Subject: Separating content from layout --- src/js/ui/sections/stellarBalancesSection.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/js/ui/sections/stellarBalancesSection.js') diff --git a/src/js/ui/sections/stellarBalancesSection.js b/src/js/ui/sections/stellarBalancesSection.js index 9b68b5a..fd07dde 100644 --- a/src/js/ui/sections/stellarBalancesSection.js +++ b/src/js/ui/sections/stellarBalancesSection.js @@ -20,13 +20,20 @@ export function stellarBalancesSection() { element: "h2", innerText: "Balances" } ] }; + var content = { + element: "div", + className: "content", + innerHTML: [ + { element: "em", id: "stellar-balances-not-found", innerText: "No data found (yet?)!" }, + { element: "table", id:"stellar-balances-table" } + ] + }; var stellarBalancesSection = { element: "div", id: "stellar-balances", innerHTML: [ whereAmI, - { element: "em", id: "stellar-balances-not-found", innerText: "No data found (yet?)!" }, - { element: "table", id:"stellar-balances-table" } + content ] }; makeElement(stellarBalancesSection, document.querySelector('.main')); -- cgit v1.2.3