Skip to content

erswelljustin/css-hud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CSS HUD

Join the chat at https://gitter.im/erswelljustin/css-hud

A Simple CSS Heads Up Display

Simply include the hud.css into your project above and then place the following code above all of the elements on your page but directly after the <body> tag in your HTML document. There is an inline style to hide the div until needed and called using JQuery for instance

	<div id="hud-overlay" style="display: none">
		<div class="hud">
			<img src="YOUR_LOADER_IMAGE">
			<p>SOME TEXT</p>
		</div>
	</div>

I would suggest using the always brilliant AJAXLoad site to generate the loading image in the color style you prefer. I have included a basic loader for you in this repo.

======

If you want to use jquery for showing this as part of an AJAX event for example, just add the following code to your script

	$('#hud-overlay').show();

Ideally you would attach this to an AJAX event such as a GET or POST and show the hud until the process has returned a success message.

======

License

Public domain: http://unlicense.org

Acknowledgements

Inspired by MBProgressHUD's brilliant library for iOS.

About

A Simple CSS Heads Up Display

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages