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/zchainDataSection.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/js/ui/sections/zchainDataSection.js') diff --git a/src/js/ui/sections/zchainDataSection.js b/src/js/ui/sections/zchainDataSection.js index 7bedffa..37ef98e 100644 --- a/src/js/ui/sections/zchainDataSection.js +++ b/src/js/ui/sections/zchainDataSection.js @@ -20,12 +20,19 @@ export function zchainDataSection() { element: "h2", innerText:"zchains"} ] }; + var content = { + element: "div", + className: "content", + innerHTML: [ + { element: "em", id:"zchain-data-sec-not-found", innerText:"No data found (yet?)!" } + ] + }; var zchainDataSection = { element: "div", id:"zchain-data-section", innerHTML: [ whereAmI, - { element: "em", id:"zchain-data-sec-not-found", innerText:"No data found (yet?)!" } + content ] }; makeElement(zchainDataSection, document.querySelector('.main')); -- cgit v1.2.3