Skip to content

naoufal/nkProgressHUD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nkProgressHUD

nkProgressHUD is a responsive web HUD that preoccupies users during server-side tasks.

nkProgressHUD

Demo

Try the demo here.

Requirements

jQuery & Modernizr

How to use

To get started, include the files in the head section of your HTML document. Make sure you're loading the jQuery library before nkProgressHUD.

<head>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
    <script src="lib/modernizr.custom.21716.js"></script>   
    <link rel="stylesheet" href="nkProgressHUD.css" type="text/css" media="screen"/>
    <script type="text/javascript" src="nkProgressHUD.js"></script>
</head>

Display the HUD

You can display the HUD by initializing nkProgressHUD like this:

nkProgressHUD.show(loaderString);

You can display whatever text you want by replacing `loaderString' with whatever you want to display to the user.

nkProgressHUD.show('Text to Display');

Changing the HUD Text

You can change the dispalyed text at any point during your script with the following:

nkProgressHUD.change('New Text');

###Dismissing the HUD

You can dismiss the HUD by adding the following to the end of your script:

nkProgressHUD.dismiss();

Browser Support

nkProgresSHUD is compatible with all modern browsers and IE8+. nkProgressHUD makes use of CSS transforms on devices that support it and falls back to jQuery animations on devices that don't.

Credits

nkProgressHUD is brought to you by Naoufal Kadhom. The spinner icon was generated over at Preloaders. nkProgressHUD is inspired by Sam Vermette's SVProgressHUD.

About

nkProgressHUD is a web HUD to preoccupy users during server-side tasks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published