$(document).ready(function(){$('[data-toggle="offcanvas"]').click(function(){$("#navigation").toggleClass("hidden-xs")})});
$(function(){$("#formsignup").submit(function(a){a.preventDefault();a.stopPropagation();a=$("#firstname").val();var b=$("#lastname").val(),e=$("#email").val(),c=$("#password").val(),d=$("#confirmPassword").val();if(c===d)$.ajax({url:"<?=site_url('signup');?>",type:"POST",data:"firstname="+a+"&lastname="+b+"&email="+e+"&password="+c+"&confirmPassword="+d,dataType:"html",success:function(a){alert(a);return!1}});else return $(".signuperror").html('<i class="alert alert-warning">Sorry! Password do not match.</i>'),
!1});$("#confirmPassword").keyup(function(){var a=$("#password").val(),b=$("#confirmPassword").val();""===b?($("#password").removeClass("red"),$("#confirmPassword").removeClass("red")):a===b?($("#password").removeClass("red"),$("#confirmPassword").removeClass("red")):($("#password").addClass("red"),$("#confirmPassword").addClass("red"))});$("#password").keyup(function(){var a=$("#password").val();$("#confirmPassword").val();""===a&&($("#password").removeClass("red"),$("#confirmPassword").removeClass("red"),
$("#confirmPassword").val(""))})});
|