Tiny Core Linux

Off-Topic => Off-Topic - Tiny Core Lounge => Topic started by: mocore on July 22, 2024, 08:47:59 PM

Title: htmz (snippet) - Html with Targeted Manipulation Zones
Post by: mocore on July 22, 2024, 08:47:59 PM
found this interesting snippet
Code: [Select]
<iframe hidden name=htmz onload="setTimeout(()=>document.querySelector(contentWindow.location.hash||null)?.replaceWith(...contentDocument.body.childNodes))"></iframe>
Quote
htmz does one thing and one thing only.

    Enable you to load HTML resources within any element in the page.

@ https://leanrada.com/htmz/ || https://github.com/Kalabasa/htmz

big <3
for
minimal scr!
Title: Re: htmz (snippet) - Html with Targeted Manipulation Zones
Post by: hiro on July 23, 2024, 05:38:25 AM
good find, thanks :)
i had already looked at htmx and was also impressed.

i never got the problem with iframes and why people tried to get rid of them... :(