Skip to content

Want to use Vanilla JS but want the jQuery fell without the bloat? NodJs is for you.

License

Notifications You must be signed in to change notification settings

nodsaibot/NodJs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NodJs

Want to use Vanilla JS but want the jQuery fell without the bloat? NodJs is for you.

Licence Project Status Size Size Minified

This project is now in beta, make sure to test your integration with this code thoroughly before deploying

jQuery exists, why do I need this?

Sometimes you dont need a flamethrower to make pancakes!

Setup

Clone the repository:

$ git clone https://github.com/nodsaibot/nodjs

Then just include the script!

<script src="{your_assets_path}/nod.js" type="application/javascript"></script>

Usage

$(".test") // class or id selector
$("input[name=email], li:first-of-type") // multiple css selector
$("#test").html() // html content getter
$("#test").html('works') // html content setter
$("#test").html().length // vanilla properties and methods still work
$("#toggler").on("click",function(e){ e.preventDefault(); $("#menu").toggle(); /* show() hide() */  }); // event listeners

Event methods

click, keypress, submit, dblclick, keydown, change, mouseenter, keyup, focus mouseleave, blur

Problems?

Please consider this repo as-is, I will not give support to issues

About

Want to use Vanilla JS but want the jQuery fell without the bloat? NodJs is for you.

Resources

License

Stars

Watchers

Forks

Packages

No packages published