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/statsSection.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/statsSection.js')
-rw-r--r-- | src/js/ui/sections/statsSection.js | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/js/ui/sections/statsSection.js b/src/js/ui/sections/statsSection.js index 115cd68..c88bfe5 100644 --- a/src/js/ui/sections/statsSection.js +++ b/src/js/ui/sections/statsSection.js @@ -20,11 +20,10 @@ export function statsSection() { element: "h2", innerText:"Stats"} ] }; - var statsSection = { - element: 'div', - id: "stats-section", + var content = { + element : "div", + className: "content", innerHTML: [ - whereAmI, { element: "div", className: "available-networks", innerHTML: [ { element: "h3", innerText: "Networks" }, { element: "details", className: "stellar-network", innerHTML:[ @@ -39,6 +38,14 @@ export function statsSection() ]} ] }; + var statsSection = { + element: 'div', + id: "stats-section", + innerHTML: [ + whereAmI, + content + ] + }; makeElement(statsSection, document.querySelector('.main')); } // @license-end |