Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/teabyii/qlite
A little library to operate DOM like jQuery, as a subset of jQuery.
https://github.com/teabyii/qlite
Last synced: about 2 months ago
JSON representation
A little library to operate DOM like jQuery, as a subset of jQuery.
- Host: GitHub
- URL: https://github.com/teabyii/qlite
- Owner: teabyii
- License: mit
- Created: 2017-03-27T10:40:40.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-08T11:06:07.000Z (over 7 years ago)
- Last Synced: 2024-08-08T19:43:53.538Z (5 months ago)
- Language: JavaScript
- Size: 37.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# QLite
A little library to operate DOM like jQuery, as a subset of jQuery.
## Why
- jQuery is thriftless as its size and several less used functions.
- Zepto updates slowly, and leaves [unsolved issues](https://github.com/madrobby/zepto/issues).
- Focus one thing, keey a tiny core to operate DOM, without collection operation, animation, network and something else.
> For example, I hope to separate Ajax to use [fetch](https://github.com/github/fetch)/[axios](https://github.com/mzabriskie/axios) instead.## API
- QLite
## TODO
- addClass/removeClass/hasClass/toggleClass
- before/after
- append/appendTo/prepend/prependTo
- attr/removeAttr/
- val/prop/removeProp
- data/removeData
- on/off/one
- children/contents
- parent/parents/closest
- css
- ready
- remove
- width/height/innerWidth/innerHeight
- insertBefore/insertAfter
- offset/offsetParent
- position
- prev/next/siblings
- scrollLeft/scrollTop