Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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?