From 794cbf1c4fe4a025df1d860f3d1336ad4a3d87c9 Mon Sep 17 00:00:00 2001 From: norbert-walter Date: Fri, 22 Aug 2025 10:23:53 +0200 Subject: [PATCH] New links for docu, rename new tab --- lib/obp60task/index.js | 6 ++++-- lib/obp60task/obp60task.h | 7 ++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/obp60task/index.js b/lib/obp60task/index.js index 54b3cf2..21e8235 100644 --- a/lib/obp60task/index.js +++ b/lib/obp60task/index.js @@ -1,10 +1,12 @@ +// Add a new register card in web configuration interface +// This is a Java Script! (function(){ const api=window.esp32nmea2k; if (! api) return; - const tabName="OBP60"; + const tabName="Screen"; api.registerListener((id, data) => { // 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) { window.open('/api/user/OBP60Task/screenshot', 'screenshot'); }) diff --git a/lib/obp60task/obp60task.h b/lib/obp60task/obp60task.h index 4d959f0..9d6ad97 100644 --- a/lib/obp60task/obp60task.h +++ b/lib/obp60task/obp60task.h @@ -41,5 +41,10 @@ #ifdef BOARD_OBP40S3 DECLARE_CAPABILITY(obp40,true) #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