4 ms·
All of the examples are basically differently-styled variations of "clicking on X adds/removes class Y on element Z". Is this all it can do? Would have liked to
by axefrog 12y ago
All of the examples are basically differently-styled variations of "clicking on X adds/removes class Y on element Z". Is this all it can do? Would have liked to see some slightly more varied use cases.
- gchp 12y agoI was thinking the same. From the few examples given, it seems to be only useful to toggling classes from click events. Would like to see some more use cases.
- Throwaway823 12y ago"Does uilang support other events? No, uilang lets you only react to clicks. Hover effects can usually be achieved in CSS and other events are simply out of the scope of this language." I guess if you only need support for adding/removing/toggling classes, and you have no plans of using jQuery, this could be useful. It's 1kb of Javascript, compared to jQuery, which is over 80kb minified. Now, everyone and their dog likely has jQuery cached from a CDN, but it's a good way to reduce unnecessary bloat. If they added one or two common features from jQuery, and used a normal syntax instead of this written non-sense, I could see some people using it as a light version of jQuery.
- notjustanymike 12y agoZepto.js -is- a light version of jQuery and comes with a lot more features.