jQuery queries

What is jQuery?

Gonna admit didn’t know too much about what exactly jQuery actually was just had some vague idea that it had something to with javascript or whatnot. Thanks to wiki and some other sites here’s a bit of research that I found helpful.

Definition of jQuery

“jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combination of versatility and extensibility, jQuery has changed the way that millions of people write JavaScript.” – jQuery website

Summary: What that essay above ^^^^ summarises to is that jQuery is a fast and easy javascript library (set of prewritten script for easier development).

Application Programming interface (API)

An API is a set of predefined rules and specifications that a program can follow to use the services and provider of another software. It is a kind of communication between two different programs allowing them to share each others services and resources.

A few example codes

1.Hover On/Off

$("a").hover(
  function () {
    // code on hover over
  },
  function () {
    // code on away from hover
  }
);

2.Slider with Arrow Navigator

http://jquery.min.js
http://jssor.slider.mini.js

    jQuery(document).ready(function ($) {
        var options = {
            $ArrowNavigatorOptions: {
                $Class: $JssorArrowNavigator$,
                $ChanceToShow: 2
            }
        };
        var jssor_slider1 = new $JssorSlider$('slider1_container', options);
    });


Reference

https://jquery.com/

http://www.jquery-tutorial.net/introduction/what-is-jquery/

http://technicalwritingtoolbox.com/2012/03/27/what_is_api_documentation/

http://stackoverflow.com/questions/14299917/making-a-simple-javascript-image-gallery

http://blog.teamtreehouse.com/14-handy-jquery-code-snippets-for-developers

Advertisements

One thought on “jQuery queries

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s