diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-11-30 16:45:38 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-11-30 16:45:38 +0200 |
commit | deb8d4969e30f9c54deadf52dc87fcc5982bc076 (patch) | |
tree | d7104db222284555919cbda5ea24a25ff35553b8 /src/js/ui/sections/filesSection.js | |
parent | fcb46774124af79d7524f102ccdcafb6042c3d5c (diff) | |
download | arching-kaos-web-ui-deb8d4969e30f9c54deadf52dc87fcc5982bc076.tar.gz arching-kaos-web-ui-deb8d4969e30f9c54deadf52dc87fcc5982bc076.tar.bz2 arching-kaos-web-ui-deb8d4969e30f9c54deadf52dc87fcc5982bc076.zip |
Refactoring final
Diffstat (limited to 'src/js/ui/sections/filesSection.js')
-rw-r--r-- | src/js/ui/sections/filesSection.js | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/src/js/ui/sections/filesSection.js b/src/js/ui/sections/filesSection.js index 7a65187..994c37e 100644 --- a/src/js/ui/sections/filesSection.js +++ b/src/js/ui/sections/filesSection.js @@ -9,19 +9,24 @@ import { makeElement } from "../../arching-kaos-generator.js"; export function filesSection() { + 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:"Modules"}, + { element: "span", innerText:">"}, + { element: "h2", innerText:"Files"} + ] + }; var filesSection = { element: 'div', id: "files-section", - innerHTML: ` - <div class="where-am-i"> - <img src="./img/logo.png" onclick="menusel({id:'#/welcome-section'})"/> - <span>></span> - <h2>Modules</h2> - <span>></span> - <h2>Files</h2> - </div> - <em id="files-sec-not-found">No data found (yet?)!</em> - ` + innerHTML: [ + whereAmI, + { element: "em", id:"files-sec-not-found", innerText: "No data found (yet?)!"} + ] }; makeElement(filesSection, document.querySelector('.main')); |