From 2cd1f36b60e191a0e3cdc1117f552c6dd5d4fcc7 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sat, 30 Nov 2024 16:13:00 +0200 Subject: create navigation header for all pages --- src/js/ui/sections/commentsSection.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/js/ui/sections/commentsSection.js') diff --git a/src/js/ui/sections/commentsSection.js b/src/js/ui/sections/commentsSection.js index 5d520cf..00ec8fe 100644 --- a/src/js/ui/sections/commentsSection.js +++ b/src/js/ui/sections/commentsSection.js @@ -9,11 +9,20 @@ import { makeElement } from "../../arching-kaos-generator.js"; export function commentsSection() { + 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:"Comments"} + ] + }; var commentsSection = { element: 'div', id: 'comments-section', innerHTML: [ - { element: "h2", innerText: "Comments" }, + whereAmI, { element: "em", id:"comments-sec-not-found", innerText: "No data found (yet?)!"} ] }; -- cgit v1.2.3