small blog post about using htmx on bearblog. it's easy and fun. shout out "not technically needing to write javascript"

small blog post about using htmx on bearblog. it's easy and fun. shout out "not technically needing to write javascript"
Oh yeah, htmx rocks โ I love that as much as you can use it to make big time-interactive sites, you can just as easily use it to do little things like this. I'm glad it gave you a low-friction way to do what you want!
this is super cool, never heard of htmx before but I think I love it at first sight.
significantly more lines & ugly/hacky BUT you could also do this using vanilla html/js with htmz:
<div id="letterboxd-panel" >Loading...</div>
<script>
function htmz(frame) {
window.addEventListener("load", (event) => {
frame.src="https://blog-data.jkap.io/letterboxd#letterboxd-panel"
});
setTimeout(() =>
document
.querySelector(frame.contentWindow.location.hash || null)
?.replaceWith(...frame.contentDocument.body.childNodes)
);
}
</script>
<iframe hidden name=htmz onload="htmz(this)"></iframe>
i don't know why you'd want this! i just thought it was cool!