/jquery-loader-plugin

This little jQuery plugin is used to add a loading popup. This could be usefull for ajax calls, and it’s really simple to use !.

Primary LanguageHTMLGNU General Public License v2.0GPL-2.0

Jquery Loader Plugin

For usage, visit : http://www.mimiz.fr/en/jquery-loader-plugin/

And for a demo : http://demos.mimiz.fr/jquery/loader

Usage :

The usage is quite simple ...

To open the loader, use this

$.loader({
   content:'Loading ...'
});

And to close the loader :

$.loader("close");

Options

  • content : HTML Code, the content of the popin. Default is : '<div>Loading …</div>
  • className : the CSS class name for the loader. Default is : loader
  • id : set the id of the loader. Default is jquery-loader
  • height : set the height of the popin in pixels. Default is 60
  • width : set the width of the popin in pixels. Default is 200
  • zIndex : set the z-index of the popup. Default is 30000
  • background : set the background opacity and the id of the background. Default is {opacity:0.4, id:’jquery-loader-background’ }

Development :

For helping in development, you will need to have node.js installed and, after forking and cloning, in the root directory of the project run the folowwing commands :

npm install
bower install
grunt test
grunt