global: snapshot

This commit is contained in:
nym21
2026-01-31 17:39:48 +01:00
parent 8dd350264a
commit ff5bb770d7
116 changed files with 13312 additions and 9530 deletions

View File

@@ -50,19 +50,17 @@ export function createLegend() {
}
legends[order] = div;
const { input, label } = createLabeledInput({
const { label } = createLabeledInput({
inputId: stringToId(`legend-${series.id}`),
inputName: stringToId(`selected-${series.id}`),
inputValue: "value",
title: "Click to toggle",
inputChecked: series.active.value,
onClick: (event) => {
event.preventDefault();
onClick: () => {
series.setActive(!series.active.value);
},
type: "checkbox",
});
input.dataset.series = series.key;
const spanMain = window.document.createElement("span");
spanMain.classList.add("main");
@@ -93,7 +91,7 @@ export function createLegend() {
anchor.href = series.url;
anchor.target = "_blank";
anchor.rel = "noopener noreferrer";
anchor.title = "Click to view data";
anchor.title = "Open the metric data in a new tab";
div.append(anchor);
}
},