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/settingsSection.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/settingsSection.js')
-rw-r--r-- | src/js/ui/sections/settingsSection.js | 18 |
1 files changed, 10 insertions, 8 deletions
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 ] }; |