Add GoatCounter count.js component (as goat.js), MIT license logo
All checks were successful
Build And Deploy / build-and-deploy (push) Successful in 5m19s

(mit.svg), and htmz assets (htmz.js and htmz.dev.js). Add LICENSE file
containing this project's MIT license and 3rd-party component licenses.
This commit is contained in:
badblocks 2026-03-07 22:38:34 -08:00
parent 89c369d1cc
commit 2548a84e0b
No known key found for this signature in database
7 changed files with 437 additions and 30 deletions

11
public/htmz.js Normal file
View file

@ -0,0 +1,11 @@
function htmz(frame) {
if (frame.contentWindow.location.href === "about:blank") return;
setTimeout(() => {
document
.querySelector(frame.contentWindow.location.hash || null)
?.replaceWith(...frame.contentDocument.body.childNodes);
frame.contentWindow.location.replace("about:blank");
frame.remove();
document.body.appendChild(frame);
});
}