jkap

CEO of posting

butch jewish dyke
part of @staff, cohost user #1
married to @kadybat

This user can say it
osu stats


๐Ÿ”ต tumblr
yrfriendjkap.tumblr.com/
๐Ÿ˜ mastodon
xoxo.zone/@jkap
๐Ÿ–ผ๏ธ icon credit
twitter.com/osmoru
๐Ÿฆ twitter
not anymore lol
๐ŸŽฌ letterboxd
letterboxd.com/yrfriendjkap/
You must log in to comment.

in reply to @jkap's post:

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!

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!