fix(challenges/xeact): add noscript warning

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso
2025-08-29 19:22:34 +00:00
parent 7905a1c6b6
commit ee662f2b56
3 changed files with 26 additions and 1 deletions

View File

@@ -115,6 +115,15 @@ const d = (ms) => {
};
};
/**
* Parse the contents of a given HTML page element as JSON and
* return the results.
*
* This is useful when using templ to pass complicated data from
* the server to the client via HTML[1].
*
* [1]: https://templ.guide/syntax-and-usage/script-templates/#pass-server-side-data-to-the-client-in-a-html-attribute
*/
const j = (id) => JSON.parse(g(id).textContent);
export { h, t, x, g, j, c, n, u, s, r, useState, d };