website_next: part 2

This commit is contained in:
nym21
2026-07-05 14:08:57 +02:00
parent 0bf2cd77dc
commit eee1a10d2a
23 changed files with 1024 additions and 1046 deletions
+22
View File
@@ -0,0 +1,22 @@
import { onPlainClick } from "./events.js";
/**
* @param {"tip"} name
* @param {string} label
* @param {string} mobileLabel
* @param {string} title
* @param {() => void} handler
*/
export function createEdgeButton(name, label, mobileLabel, title, handler) {
const button = document.createElement("button");
button.type = "button";
button.title = title;
button.ariaLabel = title;
button.dataset.edge = name;
button.dataset.mobileLabel = mobileLabel;
button.textContent = label;
onPlainClick(button, handler);
return button;
}