Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lahdekorpi/_c
underTheC is a library that makes jQuery absolutely and completely obsolete in every aspect that isn't already handled by modern browsers directly.
https://github.com/lahdekorpi/_c
Last synced: 10 days ago
JSON representation
underTheC is a library that makes jQuery absolutely and completely obsolete in every aspect that isn't already handled by modern browsers directly.
- Host: GitHub
- URL: https://github.com/lahdekorpi/_c
- Owner: lahdekorpi
- License: mit
- Created: 2019-08-30T18:04:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-30T18:20:06.000Z (over 5 years ago)
- Last Synced: 2024-11-12T14:23:30.029Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# _c
underTheC is a library that makes jQuery absolutely and completely obsolete in every aspect that isn't already handled by modern browsers directly.The library has two features. If the joke isn't obvious by now, then as a serious note; you don't need jQuery for anything in modern web. This library just has a wrapper for `document.querySelectorAll` and `HTMLElement.addEventListener` to make myself happy.
## Usage
```javascript
let test = _c("div.example #something > li") // Is the same as document.querySelectorAll("div.example #something > li")
_c(test[0]).on("click").then(() => {
// Is the same as test[0].addEventListener("click",() => {});
});
```