diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-12-03 12:15:31 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-12-03 12:15:31 +0200 |
commit | ad0f59fbc2dea546d1e33e2f4ee515827e698eed (patch) | |
tree | a0931bb97a482fa087d78a2218453f16c24a8a3c /src/js/ui/sections/stellarBalancesSection.js | |
parent | fb2428fb2eff87150d40d84b83c66ccdd7ea47b3 (diff) | |
download | arching-kaos-web-ui-ad0f59fbc2dea546d1e33e2f4ee515827e698eed.tar.gz arching-kaos-web-ui-ad0f59fbc2dea546d1e33e2f4ee515827e698eed.tar.bz2 arching-kaos-web-ui-ad0f59fbc2dea546d1e33e2f4ee515827e698eed.zip |
Separating content from layout
Diffstat (limited to 'src/js/ui/sections/stellarBalancesSection.js')
-rw-r--r-- | src/js/ui/sections/stellarBalancesSection.js | 11 |
1 files changed, 9 insertions, 2 deletions
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')); |