Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mskims/jquery-lite
Simple and fast javascript library that can be written similarly to JQuery.
https://github.com/mskims/jquery-lite
jquery vanillajs
Last synced: about 6 hours ago
JSON representation
Simple and fast javascript library that can be written similarly to JQuery.
- Host: GitHub
- URL: https://github.com/mskims/jquery-lite
- Owner: mskims
- Created: 2017-02-11T03:45:34.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-02-17T00:39:48.000Z (over 2 years ago)
- Last Synced: 2023-02-26T17:03:31.900Z (over 1 year ago)
- Topics: jquery, vanillajs
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jquery-lite
custom version of jquery# Usage
```js
window.document.addEventListener('DOMContentLoaded', function() {$(".select").each(function(value, index){
console.log(this.e, $(this).html());
});$(".select").click(function(e){
this.toggleClass("active");
}).find(".options li").click(function(){
this.html();
console.log(this.data("value"));
});$(".lazy_img").each(function(){
this.attr('src', this.data('original'));
});$(".btn-close-option-layer").click(function(){
console.log("!");
// this.parent().attr("style", "bottom: -100%");
this.parent().css("bottom", "-100%");
});});
```# Author
maybe me?