---------------------------------------------------- Loader.js : 0.4.2 : 2012/11/09 ---------------------------------------------------- https://github.com/mudcube/Loader.js ---------------------------------------------------- /// Simple setup. var loader = new widgets.Loader; /// More complex setup. var loader = new widgets.Loader({ id: "loader", bars: 12, radius: 0, lineWidth: 20, lineHeight: 70, timeout: 30, // maximum timeout in seconds. background: "rgba(0,0,0,0.5)", container: document.body, oncomplete: function() { // call function once loader has completed }, onstart: function() { // call function once loader has started } }); /// Add a new message to the queue. var loaderId = loader.add({ message: "test", getProgress: function() { // sends progress to loader.js return progress; // value between 1-100 } }); /// Remove a specific loader message. loader.remove(loaderId); /// Recenter the loader within container (run onresize) loader.center(); /// Stop all loader instances. loader.stop();
-
Notifications
You must be signed in to change notification settings - Fork 0
Simple, customizable, loading indicator to use in HTML5 projects. Handles multiple instances, with multiple progress meters running concurrently. Comes with extra libraries to help with Image, Script, Link, and XMLHttp requests.
License
jboadas/Loader.js
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simple, customizable, loading indicator to use in HTML5 projects. Handles multiple instances, with multiple progress meters running concurrently. Comes with extra libraries to help with Image, Script, Link, and XMLHttp requests.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published