diff --git a/src/static/index.html b/src/static/index.html index d733f5c..91feb65 100644 --- a/src/static/index.html +++ b/src/static/index.html @@ -12,7 +12,10 @@ - + + + Dashboard + diff --git a/src/static/js/ui/GlobalUI.mjs b/src/static/js/ui/GlobalUI.mjs index 3200552..0e7bdc0 100644 --- a/src/static/js/ui/GlobalUI.mjs +++ b/src/static/js/ui/GlobalUI.mjs @@ -23,6 +23,7 @@ class GlobalUI { // 2: Update navigation bar const el_navitems = document.querySelector(".nav-items"); // + const el_afterme = el_navitems.querySelector(".dynamic-afterme"); // Strip all non-static navigation items for(let item of el_navitems.children) { @@ -48,7 +49,8 @@ class GlobalUI { })); } - el_navitems.prepend(result); + + el_afterme.after(result); } } diff --git a/src/static/js/ui/forkawesome_emel.mjs b/src/static/js/ui/forkawesome_emel.mjs index afa7fde..4a89522 100644 --- a/src/static/js/ui/forkawesome_emel.mjs +++ b/src/static/js/ui/forkawesome_emel.mjs @@ -1,10 +1,10 @@ "use strict"; -export default function(def, fixed_width=true) { +export default function(def, fixed_width=true, aria_hidden=true) { if(typeof def === "string") - return `span[class="fa fa-${def}${fixed_width?` fa-fw`:``}"]`; + return `span[class="fa fa-${def}${fixed_width?` fa-fw`:``}"${aria_hidden?` aria-hidden="true"`:""}]`; if(def instanceof Array) - return `(span[class="fa-stack${fixed_width?` fa-fw`:``}"]>${def.map((el, i) => `span[class="fa fa-${el} fa-stack-${def.length-i}x${fixed_width?` fa-fw`:``}"]`).join(`+`)})`; + return `(span[class="fa-stack${fixed_width?` fa-fw`:``}"${aria_hidden?` aria-hidden="true"`:""}]>${def.map((el, i) => `span[class="fa fa-${el} fa-stack-${def.length-i}x${fixed_width?` fa-fw`:``}"]`).join(`+`)})`; throw new Error(`Error: Expected def of type string or Array, but got variable of type ${typeof def}`); }