Giter VIP home page Giter VIP logo

vanilla-query's Introduction

Vanilla Query

A syntax-conversion for Vanilla JS & CSS3 methods using traditional jQuery conventions.

Warning: This is NOT a replacement for jQuery. It is still recommended to use jQuery if your app uses plugins and/or makes extensive use of its methods/selectors.

Use this lib if you're relying strictly in Vanilla JS or you are only using jQuery to bind events and use simple selectors, for example in a Backbone.js app.

Scope

This is a strict Vanilla JS or CSS3 syntax conversion. No extra functionality is added - if some function is not available as Vanilla JavaScript or a CSS attribute it will not be created from scratch.

Install

Using bower:

bower install vanilla-query

Usage

Vanilla query will ovewrite the $ namespace, so it is not recommended to be used along side jQuery, Zepto or other libs that may use that global variable.

Having said that, including it as a js dependency in your app should be enough to use the $ methods as accustomed.

A simple example: [ demo ] [ source ]

Methods

These are the currently supported methods:

  • addClass
  • append
  • attr
  • click
  • clone
  • css
  • each
  • empty
  • get
  • getJSON
  • hasClass
  • hide
  • html
  • is
  • next
  • param
  • parent
  • post
  • ready
  • show
  • toggleClass

Credits

Initiated by Makis Tracend

Started as a weekend project of Makesites Hackathons

Distributed through Makesites.org

Released under the Apatche license v2.0

vanilla-query's People

Contributors

tracend avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.