aboutsummaryrefslogtreecommitdiff
path: root/src/js/ui/sections/filesSection.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/ui/sections/filesSection.js')
-rw-r--r--src/js/ui/sections/filesSection.js25
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>&gt;</span>
- <h2>Modules</h2>
- <span>&gt;</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'));