website: snap

This commit is contained in:
nym21
2026-04-06 22:30:02 +02:00
parent 02f543af38
commit e91f1386b1
35 changed files with 872 additions and 895 deletions

View File

@@ -20,3 +20,4 @@ export const searchInput = /** @type {HTMLInputElement} */ (
);
export const searchResultsElement = getElementById("search-results");
export const frameSelectorsElement = getElementById("frame-selectors");
export const pinButtonElement = getElementById("pin-button");

View File

@@ -62,11 +62,8 @@ export function numberToShortUSFormat(value, digits) {
* @param {string} s
*/
export function stringToId(s) {
return (
s
// .replace(/\W/g, " ")
.trim()
.replace(/ +/g, "-")
.toLowerCase()
);
return s
.trim()
.replace(/[ /]+/g, "-")
.toLowerCase();
}