mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-18 00:03:07 +01:00
New links for docu, rename new tab
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
|
// Add a new register card in web configuration interface
|
||||||
|
// This is a Java Script!
|
||||||
(function(){
|
(function(){
|
||||||
const api=window.esp32nmea2k;
|
const api=window.esp32nmea2k;
|
||||||
if (! api) return;
|
if (! api) return;
|
||||||
const tabName="OBP60";
|
const tabName="Screen";
|
||||||
api.registerListener((id, data) => {
|
api.registerListener((id, data) => {
|
||||||
// if (!data.testboard) return; //do nothing if we are not active
|
// if (!data.testboard) return; //do nothing if we are not active
|
||||||
let page = api.addTabPage(tabName, "OBP60");
|
let page = api.addTabPage(tabName, "Screen");
|
||||||
api.addEl('button', '', page, 'Screenshot').addEventListener('click', function (ev) {
|
api.addEl('button', '', page, 'Screenshot').addEventListener('click', function (ev) {
|
||||||
window.open('/api/user/OBP60Task/screenshot', 'screenshot');
|
window.open('/api/user/OBP60Task/screenshot', 'screenshot');
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -41,5 +41,10 @@
|
|||||||
#ifdef BOARD_OBP40S3
|
#ifdef BOARD_OBP40S3
|
||||||
DECLARE_CAPABILITY(obp40,true)
|
DECLARE_CAPABILITY(obp40,true)
|
||||||
#endif
|
#endif
|
||||||
DECLARE_STRING_CAPABILITY(HELP_URL, "https://obp60-v2-docu.readthedocs.io/de/latest/"); // Link to help pages
|
#ifdef BOARD_OBP60S3
|
||||||
|
DECLARE_STRING_CAPABILITY(HELP_URL, "https://obp60-v2-docu.readthedocs.io/en/latest/"); // Link to help pages
|
||||||
|
#endif
|
||||||
|
#ifdef BOARD_OBP40S3
|
||||||
|
DECLARE_STRING_CAPABILITY(HELP_URL, "https://obp40-v1-docu.readthedocs.io/en/latest/"); // Link to help pages
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user