1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-16 07:23:07 +01:00

add xdr help

This commit is contained in:
wellenvogel
2021-11-22 21:41:57 +01:00
parent 87ab75e528
commit b311aabcfd
3 changed files with 46 additions and 1 deletions

View File

@@ -626,6 +626,12 @@ function loadUnassigned(){
});
})
}
function showXdrHelp(){
let helpContent=document.getElementById('xdrHelp');
if (helpContent){
showOverlay(helpContent.innerHTML,true);
}
}
function toggleClass(el,id,classList){
let nc=classList[id];
let rt=false;
@@ -707,7 +713,14 @@ function createConfigDefinitions(parent, capabilities, defs,includeXdr) {
})
bt = addEl('button', 'infoButton', btContainer, '?');
bt.addEventListener('click', function (ev) {
showOverlay(item.description);
if (item.description){
showOverlay(item.description);
}
else{
if (item.category.match(/^xdr/)){
showXdrHelp();
}
}
});
})
}