From a1ffebd3a05be6c00d6e964172aa783ef0366805 Mon Sep 17 00:00:00 2001 From: Peter Hall <33176108+IamPete1@users.noreply.github.com> Date: Wed, 23 Oct 2024 00:12:07 +0900 Subject: [PATCH] TelemetryDashboard: add tool tip for connection menu --- TelemetryDashboard/TelemetryDashboard.js | 6 ++++++ TelemetryDashboard/index.html | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/TelemetryDashboard/TelemetryDashboard.js b/TelemetryDashboard/TelemetryDashboard.js index 4c2d0ae3..c57e6501 100644 --- a/TelemetryDashboard/TelemetryDashboard.js +++ b/TelemetryDashboard/TelemetryDashboard.js @@ -30,6 +30,12 @@ function setup_connect(button_svg, button_color) { }) button_svg.onclick = () => { tip.show() } + // Connection tool tip + tippy(tip_div.querySelector('img[id="TT"]'), { + appendTo: () => document.body, + theme: 'light-border', // differentiate from the interactive tip were in already + }) + // Close button tip_div.querySelector(`svg[id="Close"]`).onclick = () => { tip.hide() diff --git a/TelemetryDashboard/index.html b/TelemetryDashboard/index.html index 27331430..ef4cfa49 100644 --- a/TelemetryDashboard/index.html +++ b/TelemetryDashboard/index.html @@ -167,7 +167,11 @@