Skip to content

rclayton-godaddy/_hyperscript

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

//_hyperscript

the underscore is silent

introduction

_hyperscript is a small, open scripting language inspired by hypertalk

it is a companion project of https://htmx.org

quickstart

<script src="https://unpkg.com/[email protected]"></script>


<button _="on click toggle .clicked">
  Toggle the "clicked" class on me
</button>


<div hs="on mouseOver toggle mouse-over on #foo">
</div>

<div data-hs="on click call aJavascriptFunction() then
              wait 10s then 
              call anotherJavascriptFunction()">
           Do some stuff
</div>

website & docs

contributing

  • please write code, including tests, in ES5 for IE 11 compatibility
  • please include test cases in /test and docs in /www
  • development pull requests should be against the dev branch, docs fixes can be made directly against master

About

a small scripting language for the web

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 96.6%
  • HTML 3.1%
  • Other 0.3%