diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 5008ddf..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/Readme.md b/Readme.md deleted file mode 100644 index 8079143..0000000 --- a/Readme.md +++ /dev/null @@ -1,79 +0,0 @@ -jQuery.loader Plugin - v 1.0 -================== - -Display a loader on your page or HTML block element. - -Project site: http://monkeymonk.github.com/jquery.loader.js/ - -Demo: http://monkeymonk.be/jquery.loader.js/demo/ - - -## Usage - -### Basic - -First of all, include `jquery.loader.js (1.526 kb)`, `jquery.loader.min.css (1.135 kb)` and `loader.gif (3.866 kb)` in your HTML then start to use jQuery.loader. - -``` javascript -$(document).ready(function() { - $('body').loader('show'); - - setTimeout(function () { - - $('body').loader('hide'); - - }, 2000); -}); -``` - -### Options - -``` javascript -{ - className: 'loader', - - tpl: '
', - - delay: 200, - loader: true, // if true, you can hide the loader by clicking on it - overlay: true, // display or not the overlay - - // Callback - onHide: function () {}, - onShow: function () {} -} -``` - -### Methods - -#### jQuery().loader('show', options); - -jQuery.loader use a tiny template system that let you an easy way to customize your loader. - -``` javascript -$('body').load('show', { - onHide: function () { - // do something... - } -}); - -``` - -#### jQuery().loader('hide', onHide); - -Hide the loader - -``` javascript -$('body').loader('hide'); - -``` - - - -## Browsers: Tested and Working In - -- IE 6, 7, 8, 9, 10 -- Firefox 3+ -- Opera 10+ -- Safari 4+ - diff --git a/bower.json b/bower.json deleted file mode 100644 index f1ba9fb..0000000 --- a/bower.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "monkeymonk/jquery.loader.js", - "version": "1.0.0", - "main": [ - "jquery.loader.min.css", - "jquery.loader.min.js" - ], - "description": "Display a loader on your page or HTML block element.", - "license": "MIT", - "ignore": [ - ".jshintrc", - "**/*.txt" - ], - "dependencies": { - "jquery": ">=1.2" - }, - "devDependencies": {} -} diff --git a/demo/index.html b/demo/index.html deleted file mode 100644 index ec21338..0000000 --- a/demo/index.html +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - -- A simple show/hide loader for your application. -
-- GitHub project -
-Display a loader on your page or HTML block element.
+ + + + + +Display a loader on your page or HTML block element.
+ +Project site: http://monkeymonk.github.com/jquery.loader.js/
+ +Demo: http://monkeymonk.be/jquery.loader.js/demo/
+ +First of all, include jquery.loader.js
, jquery.loader.css
and loader.gif
in your HTML then start to use jQuery.loader.
$(document).ready(function() {
+ $('body').loader('show');
+
+ setTimeout(function () {
+
+ $('body').loader('hide');
+
+ }, 2000);
+});
+
{
+ className: 'loader',
+
+ tpl: '<div class="{className} hide"><div class="{className}-load"></div><div class="{className}-overlay"></div></div>',
+
+ delay: 200,
+ loader: true, // if true, you can hide the loader by clicking on it
+ overlay: true, // display or not the overlay
+
+ // Callback
+ onHide: function () {},
+ onShow: function () {}
+}
+
jQuery.loader use a tiny template system that let you an easy way to customize your loader.
+ +$('body').load('show', {
+ onHide: function () {
+ // do something...
+ }
+});
+
+
Hide the loader
+ +$('body').loader('hide');
+
+