_hyperscript
is a small, open scripting language designed to be embedded in HTML and inspired by
HyperTalk
it is a companion project of https://htmx.org
<script src="https://unpkg.com/hyperscript.org@0.0.3"></script>
<button _="on click toggle .big-text">
Toggle the "big-text" class on me on click
</button>
<div _="on mouseenter add .visible to #help end
on mouseleave remove .visible from #help end">
Mouse Over Me!
</div>
<div id="help"> I'm a helpful message!</div>
<button _="on click log me then call alert('yep, it\’s an alert')">
Show An Alert
</button>