Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

sakirsensoy/indicatorJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jquery-indicator

The library is a javascript loading indicator.

Contribute

I'm waiting your pull requests :)

Usage

First include script/css

<link rel="stylesheet" type="text/css" href="indicator.css" />
<script src="indicator.js"></script>

HTML

<div id="data">
...
</div>

Your javascript

// Show indicator
indicator.show('#data');

// AJAX Request
$.ajax({
	url: "/uri/",
	type: "POST",
	data: "key=value",
	success: function(result) {

	  // Hide indicator
	  indicator.hide('#data');

	  // Result
	  $('#data').html(result);
	}
});

This content is released under the (http://opensource.org/licenses/MIT) MIT License.