Showing posts with label Css. Show all posts
Showing posts with label Css. Show all posts

Saturday, 17 March 2018

How To Utilization Uncomplicated Maintenance Page Alongside The Help Of Html In Addition To Css

How To Utilization Uncomplicated Maintenance Page Alongside The Help Of Html In Addition To Css

Maintenance page is really of import when developing your website yous should temporarily exercise about maintenance spider web page to display the page inward your domain. Here is the uncomplicated agency to exercise the maintenance page alongside the attention of html as well as css code. Below representative gives yous the maintenance page without social links. I promise this is really useful.

Code to exercise Maintenance Webpage:

<!DOCTYPE html>
<html lang="en">
<head>
<title>Coming Soon Page</title>
<meta charset="UTF-8">
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="description">
<link href="https://fonts.googleapis.com/css?family=Neuton|Roboto" rel="stylesheet">
<style>
.holder{
width: 480px;
text-align: center;
margin: 0 auto;
padding-top: 120px;
}
.holder h1 {
font-family: 'loveloblack', sans-serif;
font-size:5em;
color:#2d2d2d;
text-shadow: 3px 3px 0 #e3e3e3;
line-height: 27px;
margin-top: 12px;
margin-bottom: 10px;
}
.holder h1 span.tbl{
font-family: Dosis,Tahoma,sans-serif;
font-size:35px;
color:#2d2d2d;
line-height:1em;
font-weight: bold;
letter-spacing: -1px;
line-height: 1;
text-shadow: -1px 1px 1px rgba(0, 0, 0, 0.3);
}
.holder h1 bridge {
font-family: Dosis,Tahoma,sans-serif;
font-size:1em;
color:#3d9df8;
line-height:1em;
font-weight: bold;
letter-spacing: -1px;
line-height: 1;
text-shadow: -1px 1px 1px rgba(0, 0, 0, 0.3);
}
p{
font-size: 18px;
font-weight: 600;
color: #13447E;
font-family: 'Neuton', serif;
}
</style>
</head>
<body>
<div class="holder">
<img src="logo-2.png" style="width:250px;" />
<h1><span class="tbl">Website is currently nether maintenance.</span></h1>
<p><span class="tbl">We'll live on dorsum shortly.</span></p><br>
<br />
</div>
</body>
</html>

Monday, 26 February 2018

Zoom Out Termination From Correct Side On Hover The Picture Using Css3

Zoom Out Termination From Correct Side On Hover The Picture Using Css3

This is approximately other type of zoom out effect. This outcome is something unlike from normal zoom out effect, This types of hover outcome is ordinarily used one. Because this is zoom out from correct manus side. You tin come across the below alive exhibit for this effect. This outcome volition done using unproblematic css3 code transition properties as well as yous merely decrease the width of the ikon on mouse hover. This illustration haves the amount code as well as exhibit banking concern friction match it out. yous tin purpose this outcome to your webpages. I promise this hover outcome is really useful to you.


<html>
<head>
<title>Right Zoom out Effect from correct side alongside caption using css3</title>
<style>
.column {
margin: 15px 15px 0;
padding: 0;
}
.column:last-child {
padding-bottom: 60px;
}
.column::after {
content: '';
clear: both;
display: block;
}
.column div {
position: relative;
float: left;
width: 300px;
height: 200px;
margin: 0 0 0 25px;
padding: 0;
}
.column div:first-child {
margin-left: 0;
}
.column div bridge {
position: absolute;
bottom: -20px;
left: 0;
z-index: -1;
display: block;
width: 300px;
margin: 0;
padding: 0;
color: #444;
font-size: 18px;
text-decoration: none;
text-align: center;
-webkit-transition: .3s ease-in-out;
transition: .3s ease-in-out;
opacity: 0;
}
figure {
width: 300px;
height: 200px;
margin: 0;
padding: 0;
background: #fff;
overflow: hidden;
}
figure:hover+span {
bottom: -36px;
opacity: 1;
}

.hover04 figure img {
width: 400px;
height: auto;
-webkit-transition: .3s ease-in-out;
transition: .3s ease-in-out;
}
.hover04 figure:hover img {
width: 300px;
}
</style>
</head>
<body>
<div class="hover04 column">
<div>
<figure><img src="1.jpeg" /></figure>
<span>Hover Text</span>
</div>
<div>
<figure><img src="2.jpeg"  /></figure>
<span>Hover Text</span>
</div>
<div>
<figure><img src="3.jpeg" /></figure>
<span>Hover Text</span>
</div>
<div>
<figure><img src="4.jpeg" /></figure>
<span>Hover Text</span>
</div>
</div>
</body>
</html>

Sunday, 18 February 2018

20 Unproblematic Css Hover  Lawsuit For Image

20 Unproblematic Css Hover Lawsuit For Image

1. Zoom In Effect:

nosotros volition practise the lot of animation effects inwards your websites using the unproblematic css3 codes , Here nosotros volition run across how to practise the zoom inwards consequence on hover the prototype using the css3 transition together with scaling the image. You tin grow an prototype together with shrink on mouse hover. Every websites needs minimum animation effects to attract the customers.



Now a days css3 animation is working ameliorate together with then the js animations.CSS transitions, which are utilisation of the CSS3 laid upward of specifications, supply a agency to command animation speed when changing CSS properties.

2. Right Zoom In Effect:

This is approximately other type of zoom inwards effect. This consequence is something unlike from normal zoom inwards effect, This types of hover consequence is usually used one. Because this is zoom inwards from correct mitt side. You tin run across the below alive demo for this effect. 

This consequence volition done using unproblematic css3 code transition properties together with y'all only increase the width of the prototype on mouse hover. This instance haves the amount code together with demo cheque it out. y'all tin utilisation this consequence to your webpages.                                                                                                  

3. Shadow Effect :

This postal service helps y'all to practise shadow consequence to detail prototype using css3 code. This is really unproblematic method to practise this consequence together with besides it volition highlight the user hover the image, this consequence besides i of the commenly used one. The below css code helps y'all to practise shadow, Add the degree to the prototype together with write the css code for degree hover equally a below

.shadow:hover
{
box-shadow: 10px 10px 30px 5px #aaa;
}


Here y'all receive got the demo page y'all tin besides cheque the demo page how it plant perfectly. I promise this unproblematic box shadow consequence  is really useful.


4. Zoom Out Effect:

The approximately other interesting hover consequence is Zoom out effect. This animated effects volition done past times using unproblematic css3 code. Below is the unproblematic instance shows the how zoomout effects volition works. Here is the alive demo, accept the alive demo page together with run across how it is working. 



The prototype hover consequence is really very of import to highlight the prototype when hover. It is really useful to the gallery page together with production pages, service pages etc... Here i volition provided the code for zoomout consequence animation code on hover the image. I promise this is really useful for your website. I volition postal service approximately other consequence inwards adjacent post.


5. Right Zoom out Effect:

This is approximately other type of zoom out effect. This consequence is something unlike from normal zoom out effect, This types of hover consequence is usually used one. Because this is zoom out from correct mitt side. You tin run across the below alive demo for this effect. This consequence volition done using unproblematic css3 code transition properties together with y'all only decrease the width of the prototype on mouse hover. 
This instance haves the amount code together with demo cheque it out. y'all tin utilisation this consequence to your webpages. I promise this hover consequence is really useful to you.


6. Simple Border Effect:

This is i of the unproblematic consequence amongst unproblematic css code. Simply highlight the prototype using edge y'all tin utilisation this i work code on hover the image. Just telephone telephone i degree to the detail prototype together with write the code for degree hover equally a border :3px venture #000; 
you tin select whatsoever other colors together with edge width equally y'all want. this type of hover consequence volition highlight the prototype together with this volition useful for the gallery page equally well.


7. Slide Effect:

Slide consequence is approximately other animation effect, We tin utilisation it for prototype hover this types of consequence volition done past times using the unproblematic css3 code together with this besides usually used animation effect. This prototype hover volition done past times using a small-scale flim-flam that is to increase the margin left for the prototype together with decrease the margin-left on hover the prototype using approximately of the unproblematic css3 transition  and transform codes.
We ever utilisation the unlike types of prototype hover consequence to attract the customers. So this is i of the prototype hover effect, This instance receive got the demo page together with amount code y'all may hold out download together with utilisation it to your webpages. I promise this volition really useful animation code.


8. Rotate Effect:

Rotate Effect is i of the unproblematic effect. It volition done past times using css3.  we volition practise the lot of animation effects inwards your websites using the unproblematic css3 codes , Here nosotros volition run across how to practise the unproblematic Rotate consequence  on hover the prototype using the css3. Every websites needs minimum animation effects to attract the customers.

This rotate consequence is i of the best attracting animation. Below is the unproblematic css3 code to rotate an prototype on mouse hover. This is done past times the css transform properties. Here is the alive demo to run across the rotate effect


9. Image Overlay Effect:

In this instance i present y'all how to practise unproblematic overlay consequence amongst caption animation , The caption animation volition comes from unlike  sides similar left, right, top, bottom, give left, give right, bottom left together with bottom right. You tin able to run across this caption animation along amongst the prototype overlay consequence inwards the demo page. 



Please click the demo link below together with cheque this example. The overlay consequence i used inwards dark color y'all may modify the background color according to your wish. Check out the below unproblematic html together with css code for this effect. I promise this postal service is really useful.

10. Shining Effect:


Shining Effect is i of the unlike consequence this animation volition done past times using the unproblematic css3 animation code. Here the shining consequence volition done on hover the image. There are several types of prototype hover consequence is at that spot but this is i of the overnice effect. 

This instance receive got the demo together with amount code for this shining effect, I promise this unproblematic animation consequence volition useful to your projects.


11. Gray Scale Effect:

This is an approximately other css3 effect. It volition done past times unproblematic css code filter properties. On hover the prototype it shows the color moving-picture present together with when y'all mouse out from the prototype it shows the greyish scale image. You tin filter whatsoever types prototype inwards to greyish scale prototype using css3 filter option. The below code helps y'all to filter the image.


-webkit-filter: grayscale(100%);
filter: grayscale(100%);
the higher upward code is display the prototype inwards dark together with white. when y'all laid upward the filter:grayscale(0%) over again the prototype color turned the master copy color. Here is the amount code together with alive demo available inwards the below instance for your ameliorate understanding. I promise this postal service is really useful.

12. Opacity Effect:

This css consequence is usually used hover effect. Reduce the opacity of the prototype on hover the detail prototype this volition done past times using the unproblematic css code. opacity: .5; You may cut back the opacity .4,.6 similar that according to your choice. 
Below instance receive got the sample codes together with demos delight cheque it was really useful for beginners


13. Opacity amongst Background Color:

Opacity cut back consequence is i of the usually used animation consequence on hover the image. y'all tin cut back the prototype opacity on hover using unproblematic css3 code. Here this consequence approximately affair unlike y'all tin cut back the opacity for the background color. In this consequence y'all tin visible the prototype amongst background overlay.
This is really unproblematic y'all tin follow the below css code. The below prototype shows how the background prototype opacity is looks for. Visit the below demo link for ameliorate agreement of this hover effect.



14. Morphing Effect:

Morphing is a particular together with unproblematic consequence inwards pictures to modify the i shape to approximately other shape. Here i volition say y'all how to practise unproblematic morphing consequence using the css3 code. This below instance i volition present y'all how to practise the rectangle type prototype to circle type prototype amongst the assistance of Css similar below diagram. utilisation the transition: all 0.5s ease; css properties  to modify the prototype shape shine manner.


Just modify the border-radius:50%; to modify the prototype shape. This is really slow to practise i promise this instance is really useful. This instance receive got the source code together with demo page, Please cheque out the demo page for this morphing effect. 



15. Flash Effect: 

Before this nosotros seen lot of  css3 hover effect. Flash Effect is a approximately other overnice css3 effect, Now nosotros tin run across how to utilisation this css3 consequence on hover the image. When nosotros compare to approximately other consequence it is the ameliorate one. 


This animation consequence volition done using the unproblematic css3 code. Below instance shows the flash animation effect, hither is the amount css code together with besides provided alive demo for your ameliorate understanding.

16. Sepia Effect:

The sepia is i of the prototype effect, this consequence contains fiddling xanthous this is only reverse of the dark together with white photo. Sepia is a reddish-brown color, named afterwards the rich chocolate-brown paint derived from the ink sac of the mutual cuttlefish Sepia.



Now i volition say y'all how to filter your color moving-picture present to sepia toned moving-picture present amongst the assistance of css3 filter. The below css3 code helps to filter the color to sepia image
-webkit-filter: sepia(0);
filter: sepia(0);

This is also commonly used prototype consequence for hover. This instance receive got the demo page together with source code for this sepia effect. I promise this volition really useful.

17. Blur amongst Gray Scale Effect: 


This is i of the interesting hover consequence to present the greyish scale amongst blur on hover the prototype amongst the assistance of the unproblematic css3 code. Every gallery or production based images demand to hold out approximately hover consequence to attract the customers. The below prototype shows y'all to supply the hover consequence amongst grayscale blur animation.

Here is the demo page together with the amount code to ameliorate empathise this effect. I promise this is really useful , nosotros volition run across the adjacent consequence inwards approximately other post.

18. Blur Effect:

Now a days css3 animation is working ameliorate together with then the js animations. nosotros volition practise the lot of animation effects inwards your websites using the unproblematic css3 codes , Here nosotros volition run across how to practise the unproblematic blur inwards consequence on hover the prototype using the css3 filter to the image. Every websites needs minimum animation effects to attract the customers.


.hover07 figure img {
-webkit-filter: blur(3px);
filter: blur(3px);
-webkit-transition: .3s ease-in-out;
transition: .3s ease-in-out;
}
.hover07 figure:hover img {
-webkit-filter: blur(0);
filter: blur(0);
}

The higher upward laid upward of css3 code is used to blur the prototype on mouse hover . I provided the html together with css code for creating the Blur consequence on prototype hover. Blur prototype on mouse hover tin hold out created using CSS3 filter. This tutorial is really slow together with this consequence tin hold out easily created using few lines of higher upward code. Here i provided the demo page together with code for this unproblematic zoom inwards effect. I promise this is really useful  will run across the approximately other css3 consequence adjacent post.



19. Circle Shining Effect:

Circle shining consequence is on of the consequence done past times using unproblematic css3 code. The shine consequence is inwards the agency of circle together with this is besides called equally a moving ridge consequence on hover the image. This is i of the unproblematic together with attractive css3 effect. 

The below instance helps y'all to practise this effect, Here i provided the alive demo together with code for this consequence for ameliorate understanding.



20. Focus Effect:

Focus consequence is i of the overnice css3 hover effect, The Css3 code is used to practise this consequence without any JavaScript and jquery help. The focus animation consequence is easily attract the website visitors together with besides highlight the prototype perfectly. Now volition run across how to practise this unproblematic hover consequence amongst the assistance of css.

transition: all 1s ease; this code helps y'all to modify the belongings values smoothly  and on hover to laid upward the border: 70px venture #000; border-radius: 50%; to focus the picture. using the below unproblematic css3 code y'all tin achive this unproblematic focus effect. Here besides receive got the demo page delight cheque it out together with download the code if y'all want. I promise this instance is useful to you.




Wednesday, 14 February 2018

Full Covert Carte Using Pure Css3

Full Covert Carte Using Pure Css3

In this post service nosotros are going to encounter how to exercise amount enshroud  menu using solely css code. This is real elementary concept to display carte inward amount enshroud mode, This is likewise similar mobile toggle menu. Now a days all are desire dissimilar types of designing concept inward websites. This carte ane of the dissimilar carte concept for websites. This carte contains the 3 bar inward the correct side corner when y'all click that detail carte it hiding the all abode page contents in addition to displays the menus. When y'all desire to unopen the carte y'all should click the correct corner unopen icon.

Now a days this type of mutual carte is using inward the websites. This is likewise ane of the user friendly. This carte fully done past times using pure css3 code, Without whatever help of javascript in addition to jquery. I promise this illustration is real useful for the developers. Here nosotros convey the demonstrate page, Please depository fiscal establishment represent out the demonstrate page inward the below link. 


Html Code for Full Screen Menu:

<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Full Screen Menu using Css3 | sanwebcorner.com</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<label>
<input type='checkbox'>
<span class='menu'>
<span class='fullmenu'></span>
</span>
<ul>
<li><a href='http://www.publishertrend.com/'>Home</a></li>
<li><a href='http://demos.sanwebcorner.com/'>Demo</a></li>
<li><a href='https://www.facebook.com/sanwebcorner/'>About</a></li>
</ul>
</label>
<h1>San Web Corner - Full Screen Menu using css</h1>
</body>
</html>


Css for Full Screen Navigation Bar:

*,
*:before,
*:after {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}

html {
font-size: 18px;
}

torso {
font-size: 1.2em;
line-height: 1.6;
background: #8BC34A;
overflow-x: hidden;
}

label .menu {
position: absolute;
right: -100px;
top: -100px;
z-index: 100;
width: 200px;
height: 200px;
background: #FFF;
border-radius: 50% 50% 50% 50%;
-webkit-transition: .5s ease-in-out;
transition: .5s ease-in-out;
-webkit-box-shadow: 0 0 0 0 #FFF, 0 0 0 0 #FFF;
box-shadow: 0 0 0 0 #FFF, 0 0 0 0 #FFF;
cursor: pointer;
}
label .fullmenu {
position: absolute;
top: 135px;
left: 50px;
width: 30px;
height: 2px;
background: #000;
display: block;
-webkit-transform-origin: center;
transform-origin: center;
-webkit-transition: .5s ease-in-out;
transition: .5s ease-in-out;
}
label .fullmenu:after, label .fullmenu:before {
-webkit-transition: .5s ease-in-out;
transition: .5s ease-in-out;
content: "";
position: absolute;
display: block;
width: 100%;
height: 100%;
background: #000;
}
label .fullmenu:before {
top: -10px;
}
label .fullmenu:after {
bottom: -10px;
}
label input {
display: none;
}
label input:checked + .menu {
-webkit-box-shadow: 0 0 0 100vw #FFF, 0 0 0 100vh #FFF;
box-shadow: 0 0 0 100vw #FFF, 0 0 0 100vh #FFF;
border-radius: 0;
}
label input:checked + .menu .fullmenu {
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
label input:checked + .menu .fullmenu:after {
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
bottom: 0;
}
label input:checked + .menu .fullmenu:before {
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
top: 0;
}
label input:checked + .menu + ul {
opacity: 1;
}
label ul {
z-index: 200;
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
opacity: 0;
-webkit-transition: .25s 0s ease-in-out;
transition: .25s 0s ease-in-out;
}
label a {
margin-bottom: 1em;
display: block;
color: #000;
text-decoration: none;
}

h1 {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
width: 80%;
text-align: center;
color:#fff;
}

Saturday, 10 February 2018

How To Practice 3(Three) Footstep Registration Course Of Pedagogy Alongside Javascript Validation

How To Practice 3(Three) Footstep Registration Course Of Pedagogy Alongside Javascript Validation

This post helps y'all how to practice uncomplicated too perfect 3 measurement shape alongside Javscript validation using Css3 too Html.Now a days 3 measurement shape is normally used shape inward the webpages because it is real attractive i for the customers because it helps no need to scroll downwards for the bigger type forms. And too 3 measurement shape is captured the information yesteryear the categories, And too this from contains the Progress bar inward the top of the shape it volition done yesteryear using css3 too Jquery for user reference.

This uncomplicated attractive shape volition done yesteryear using css3 too html too validation purpose nosotros used the JavaScript. The shape is processed the validation measurement yesteryear measurement yesteryear clicking the adjacent button. Here convey a in conclusion measurement to verify the all of your shape contents alongside your data. You tin move customize this shape according to your project. I promise this tutorial  is real useful for the developers.


In this event i used the name, electronic mail too province inward the get-go measurement if y'all clicked adjacent push clit without whatsoever information y'all volition teach the validation fault similar the below screenshot.In the adjacent measurement is username too password too confirmation password is given alongside JavaScript validation, the tertiary measurement is verification measurement is to display all your Datas from the form.

This multiple measurement shape is the responsive shape it volition tally all the device because its done yesteryear using bootstrap too html . This multi measurement shape is used to cut down the webpage infinite equally good the user attraction. The below event convey the codes too demo page. Check the below demo page for your ameliorate agreement of this Three(3) Level shape alongside validation.

 This post helps y'all how to practice uncomplicated too perfect  How to practice 3(three) measurement registration shape alongside JavaScript validation


Html Code Three measurement shape alongside Validation:

<div class="container">
<br><br>
<form class="form-horizontal form">
<div class="col-md-8 col-md-offset-2">  
<div class="progress">
<div class="progress-bar progress-bar-success progress-bar-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100"></div>
</div>

<div class="box row-fluid">
<br>
<div class="step">
<div class="form-group">
<label for="name" class="col-sm-2 control-label">Name</label>
<div class="col-sm-10">
<input type="text" name="name" class="form-control" id="name" placeholder="Name">
</div>
</div>
<div class="form-group">
<label for="email" class="col-sm-2 control-label">Email</label>
<div class="col-sm-10">
<input type="text" name="email" class="form-control" id="email" placeholder="email">
</div>
</div>
<div class="form-group">
<label for="country" class="col-sm-2 control-label">Country</label>
<div class="col-sm-10">
<select class="form-control" name="country" id="country">
<option value="">Select</option>
<option value="India">India</option>
<option value="Australia">Australia</option>
<option value="USA">USA</option>
<option value="Japan">Japan</option>
<option value="Singapore">Singapore</option>
<option value="Malaysia">Malaysia</option>
</select>
</div>
</div>
</div>
<div class="step">
<div class="form-group">
<label for="username" class="col-sm-2 control-label">Username</label>
<div class="col-sm-10">
<input type="text" name="username" value="" class="form-control" id="username" placeholder="Username">
</div>
</div>
<div class="form-group">
<label for="password" class="col-sm-2 control-label">Password</label>
<div class="col-sm-10">
<input type="password" name="password" value="" class="form-control" id="password" placeholder="Password">
</div>
</div>
<div class="form-group">
<label for="rpassword" class="col-sm-2 control-label">Retype Password</label>
<div class="col-sm-10">
<input type="password" name="rpassword" class="form-control" id="rpassword" placeholder="Retype password">
</div>
</div>  
</div>
<div class="step display">
<h4>Confirm Details</h4>
<div class="form-group">
<label class="col-sm-2 control-label">Name :</label>
<label class="col-md-10 control-label lbl" data-id="name"></label>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Email :</label>
<label class="col-md-10 control-label lbl" data-id="email"></label>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Country :</label>
<label class="col-md-10 control-label lbl" data-id="country"></label>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Username :</label>
<label class="col-md-10 control-label lbl" data-id="username"></label>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Password :</label>
<label class="col-md-10 control-label lbl" data-id="password"></label>
</div>
</div>

<div class="row">
<div class="col-sm-12">
<div class="pull-right">
<button type="button" class="action btn-sky text-capitalize dorsum btn">Back</button>
<button type="button" class="action btn-sky text-capitalize adjacent btn">Next</button>
<button type="button" class="action btn-hot text-capitalize submit btn">Submit</button>
</div>
</div>
</div>

</div>
<a style="color:#fff; float:right;" href="http://www.publishertrend.com/"><h3>www.sanwebcorner.com</h3></a>
</div>
</form>
</div>

Javascript for 3 measurement shape alongside validation:

<script type="text/javascript">
$(document).ready(function(){
var electrical current = 1;

widget      = $(".step");
btnnext     = $(".next");
btnback     = $(".back"); 
btnsubmit   = $(".submit");

// Init buttons too UI
widget.not(':eq(0)').hide();
hideButtons(current);
setProgress(current);

// Next push clit click action
btnnext.click(function(){
if(current < widget.length){
// Check validation
if($(".form").valid()){
widget.show();
widget.not(':eq('+(current++)+')').hide();
setProgress(current);
}
}
hideButtons(current);
})

// Submit push clit click
btnsubmit.click(function(){
alert("Submit push clit clicked");
});


// Back push clit click action
btnback.click(function(){
if(current > 1){
electrical current = electrical current - 2;
if(current < widget.length){
widget.show();
widget.not(':eq('+(current++)+')').hide();
setProgress(current);
}
}
hideButtons(current);
})

$('.form').validate({ // initialize plugin
ignore:":not(:visible)",
rules: {
mention     : "required",
electronic mail    : {required : true, email:true},
province  : "required",
username : "required",
password : "required",
rpassword: { required : true, equalTo: "#password"},
},
});

});

// Change progress bar action
setProgress = function(currstep){
var per centum = parseFloat(100 / widget.length) * currstep;
per centum = percent.toFixed();
$(".progress-bar").css("width",percent+"%").html(percent+"%");
}

// Hide buttons according to the electrical current step
hideButtons = function(current){
var bound = parseInt(widget.length); 

$(".action").hide();

if(current < limit) btnnext.show();
if(current > 1) btnback.show();
if (current == limit) { 
// Show entered values
$(".display label.lbl").each(function(){
$(this).html($("#"+$(this).data("id")).val());
});
btnnext.hide(); 
btnsubmit.show();
}
}
</script>