Skip to content

Added Rails Designer's attractive.js#56

Open
eelcoj wants to merge 2 commits intoadamghill:mainfrom
Rails-Designer:add-attractivejs
Open

Added Rails Designer's attractive.js#56
eelcoj wants to merge 2 commits intoadamghill:mainfrom
Rails-Designer:add-attractivejs

Conversation

@eelcoj
Copy link

@eelcoj eelcoj commented Oct 7, 2025

This adds https://github.com/Rails-Designer/attractive.js as a JS library. It works like this:

<button data-action="toggleClass#active" data-target="#target">
  Toggle
</button>

<p id="target" class="target">
  This element should toggle the `active` class when the above button is clicked.
</p>

@adamghill
Copy link
Owner

If you update this PR and make it mergeable, I'll merge it in.

@eelcoj
Copy link
Author

eelcoj commented Mar 2, 2026

Done ✅

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

Successfully merging this pull request may close these issues.

2 participants