geeky-js
v0.0.3
Published
A simple javascript library like JQuery with some optimizations
Downloads
8
Maintainers
Readme
GeekyJS
A simple javascript library like JQuery with some optimizations.
Current Modules
- Click Event binding
- Adding Classes (One/Multiple comma seperated)
- Removing classes (One/Multiple comma seperated)
- Remove All
- Supports method chaining.
Installation
npm i geeky-js
Usage
<script src="dist/geeky.min.js"></script>
Click Event
_$('#man').click(function() {
// Stuff
})
Add Class
_$('#man')
.addClass('classname1')
.addClass('classname2')
// OR
_$('#man')
.addClass('classname1, classname2, classname3');
// Adds all three classes
Remove Class
_$('#man')
.removeClass('classname1')
.removeClass('classname2')
// OR
_$('#man')
.removeClass('classname1, classname2, classname3');
// Adds all three classes
Remove All
_$('#man')
.removeAll()
// Removes all classes
Author
Krishcdbry [[email protected]]
Licence
MIT @krishcdbry