Add/fix missing icon tooltips (#1347)

This commit is contained in:
Tim Wilkinson 2024-08-21 11:49:16 -07:00 committed by GitHub
parent b09062739d
commit c3a55b112e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 6 deletions

View File

@ -67,7 +67,7 @@
const v2 = match(v[1], reType);
if (v2) {
v[1] = v2[1];
type += ` <div class="icon ${v2[2]}"></div>`;
type += ` <div class="icon ${v2[2]}" title="${v2[2]}"></div>`;
}
switch (v[4]) {
case "80":
@ -88,7 +88,7 @@
const k2 = match(k[1], reType);
if (k2) {
k[1] = k2[1];
type = ` <div class="icon ${k2[2]}"></div>`;
type = ` <div class="icon ${k2[2]}" title="${v2[2]}"></div>`;
}
push(services, `<div class="service">${k[1]}${type}</div>`);
}

View File

@ -37,7 +37,7 @@
Password <input type="password"><button>OK</button>
</dialog>
<div id="login-icon" class="popup-menu">
<label>
<label title="Login as admin">
<input type="checkbox">
<div class="icon login"></div>
</label>

View File

@ -33,9 +33,9 @@
*/
%}
<div id="tools" class="popup-menu">
<label>
<label title="Node tools">
<input type="checkbox">
<div title="Node tools" class="icon tools"></div>
<div class="icon tools"></div>
</label>
<div class="menu">
{% if (hardware.getRadioCount() > 0) { %}

View File

@ -57,7 +57,7 @@ function serv(ip, hostname)
const nametype = name.match(/^(.*)\[(.*)\]$/);
if (nametype) {
name = nametype[1];
type = `<div class="icon ${nametype[2]}"></div>`;
type = `<div class="icon ${nametype[2]}" title="${nametype[2]}"></div>`;
}
const r = url.match(/^(.+:\/\/)([^:]+):(\d+)(.*)$/);
switch (r[3]) {