Skip to content

Simple extension to the jquery.ui library that displays fullscreen spinning loader. View and message can be customized. No external graphics, css nor divs is required.

Notifications You must be signed in to change notification settings

ashleycoker/jquery-ui-Mask

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jquery-ui-Mask

Simple extension to the jquery.ui library that displays fullscreen spinning loader. View and message can be customized. No external graphics, css nor divs is required.

Installation

Include script after the jQuery library and jQuery.ui script and css stylesheets (unless you are packaging scripts somehow else):

<link type="text/css" media="all" rel="stylesheet" href="jquery-ui-1.8.21.custom/css/smoothness/jquery-ui-1.8.21.custom.css"/>
<script type="text/javascript" src="jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="jquery-ui-1.8.21.custom/js/jquery-ui-1.8.21.custom.min.js"></script>

<script type="text/javascript" src="/path/to/jquery.ui.Mask.js"></script>

Demo page

http://siciarek.linuxpl.info/jquery-ui-Mask/demo/index.html

Usage

Default settings:

jQuery.ui.Mask.show();                      // default message 'Please wait'.
jQuery.ui.Mask.show('Hello, World!');       // customized message 'Hello World!'.
jQuery.ui.Mask.hide();                      // hides loader.

Customized settings:

var settings = {
    id: 'myLoadingScreen',
    loadingImg: 'images/ajax-loader.gif',
    fgColor: 'red',
    bgColor: 'yellow',
    defaultMessage: 'Hello, World!'
};

jQuery.ui.Mask.new(settings).show();        // Customized layout
var loader = jQuery.ui.Mask.new(settings);  // Customized layout OOP approach

loader.show();
loader.hide();

Restore default settings:

jQuery.ui.Mask.reset();

Options

{
    id: 'loadingScreen',
    loadingImg: 'data:image/gif;base64,R0lG...EQA7',
    fgColor: 'gray',
    bgColor: 'none',
    defaultMessage: 'Please wait'
}

Development

Authors

Jacek Siciarek

About

Simple extension to the jquery.ui library that displays fullscreen spinning loader. View and message can be customized. No external graphics, css nor divs is required.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 95.3%
  • PHP 3.1%
  • CSS 1.6%