Coder Social home page Coder Social logo

jqloader's Introduction

JQLoader

JQLoader is a Jquery plugin to show a loading bar, or full screen loading

Usage

Just include JQLoader.css and JQLoader.js in your HTML page.

Full code sample :

<!-- Only for beautify this demo page -->
<style>
body{
font-family:calibri;
}

.div_sample{
width:200px;
height:200px;
border:1px solid #dedede;
}
</style>

<!-- Loading need this -->
<script src="jquery.js" type="text/javascript"></script>
<script src="jquery.easing.min.js" type="text/javascript"></script>

<!-- Loading Core -->
<link rel="stylesheet" type="text/css" href="css/JQLoader.css" />
<script src="js/JQLoader.js" type="text/javascript"></script>

<h1>JQLoader</h1>
<h3>JQLoader is a Jquery plugin to show a loading bar, or full screen loading</h3>

Try our the Sample : <br/><br/>

<h2>Full Screen Loading</h2>

<h3>Standard Theme</h3>
<button id="open_standard">Open Standard</button>
<button id="close_standard">Close Standard</button>

<h3>Bottom Bar Theme</h3>
<button id="open_bottom">Open</button>
<button id="close_bottom">Close</button>

<h2>Loading on the div</h2>

<button id="open_div_standard">Open div Standard</button>
<button id="close_div_standard">Close div Standard</button>
<br/><br/>
<div style="position:relative;" class="div_sample"></div>

<script>

$(document).ready(function(){

	// Full screen standard
	$('#open_standard').click(function(){
		
		$( "body" ).JQLoader({
			theme: "standard",
			mask: true,
			background: "#444",
			color: "#fff"
		});
		
	});
	
	$('#close_standard').click(function(){
	
		$( "body" ).JQLoader({
			action: "close"
		});
		
	});
	
	// Div standard
	$('#open_div_standard').click(function(){
	
		$( ".div_sample" ).JQLoader({
			theme: "standard",
			mask: true,
			background: "#fff",
			color: "#fff"
		});
		
	});
	
	$('#close_div_standard').click(function(){
	
		$( ".div_sample" ).JQLoader({
			theme: "standard",
			mask: true,
			background: "#fff",
			color: "#fff",
			action: "close"
		});
		
	});
	
	// Full screen
	$('#open_bottom').click(function(){
	
		$( "body" ).JQLoader({
			theme: "bottom",
			action: "open"
		});
		
	});
	
	$('#close_bottom').click(function(){
	
		$( "body" ).JQLoader({
			theme: "bottom",
			action: "close"
		});
		
	});
})
</script>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.