mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-26 04:37:14 +02:00
0.8.58
* 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:
parent
5d4d5e75a3
commit
c3a2ad0a97
13 changed files with 264 additions and 202 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue