Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hs and data-hs attributes not working? #585

Closed
nikalexis opened this issue Oct 28, 2024 · 1 comment
Closed

hs and data-hs attributes not working? #585

nikalexis opened this issue Oct 28, 2024 · 1 comment

Comments

@nikalexis
Copy link

From the README.md:

<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>

I tried hs and data-hs attributes, but are not working for me.

In contrary, copied from the docs.

It's worth mentioning that, if you prefer, you can use script or data-script instead of _ when using hyperscript:

script and data-script are working fine.

1cg added a commit that referenced this issue Dec 17, 2024
@1cg
Copy link
Contributor

1cg commented Dec 17, 2024

yikes that's been wrong for a while!

@1cg 1cg closed this as completed Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants