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/settingsSection.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src/js/ui/sections/settingsSection.js') diff --git a/src/js/ui/sections/settingsSection.js b/src/js/ui/sections/settingsSection.js index e2e2fe3..8d8be0f 100644 --- a/src/js/ui/sections/settingsSection.js +++ b/src/js/ui/sections/settingsSection.js @@ -14,18 +14,20 @@ debugLog(settings); export function settingsSection() { + 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:"🔧 Settings"} + ] + }; var settingsSection = { element: 'div', id: "settings-section", innerHTML: [ - {element: "div", - className:"where-am-i", - innerHTML:[ - {element: "img", src:"./img/logo.png", onclick: "menusel({id:'#/welcome-section'})"}, - {element: "span", innerText:">"}, - {element: "h2", innerText:"🔧 Settings"} - ] - } + whereAmI ] }; -- cgit v1.2.3