* full refresh of ePaper after booting #1107
* add optional custom link #1199
* pinout has an own subgroup in `/settings`
* grid profile will be displayed as hex in every case #1199
This commit is contained in:
lumapu 2024-01-18 00:10:29 +01:00
parent 5d4d5e75a3
commit c3a2ad0a97
13 changed files with 264 additions and 202 deletions

View file

@ -84,10 +84,18 @@ function topnav() {
}
function parseNav(obj) {
for(i = 0; i < 12; i++) {
for(i = 0; i < 13; i++) {
if(i == 2)
continue;
var l = document.getElementById("nav"+i);
if(12 == i) {
if(obj.cst_lnk.length > 0) {
l.href = obj.cst_lnk
l.innerHTML = obj.cst_lnk_txt
l.classList.remove("hide");
}
continue;
}
if(window.location.pathname == "/" + l.href.substring(0, l.href.indexOf("?")).split('/').pop()) {
if((i != 8 )&& (i != 9))
l.classList.add("active");