/*///////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////// Author : Jordan Prybylski, JRD89 Name : AGE BLOCK Created : SEP 5th 2011 Version : 1.0 Help File : For More information and help please read the help file supplied with this file. If after reading the help file you still need technical help. Please feel free to email me via codecanyon.com NOTICE : YOU MAY NOT USE THIS SCRIPT WITH OUT THE PROPER LICENSE/PERMISSION /////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////*/ (function(a){a.fn.extend({ageBlock:function(b){var c={title:"Hello, one second please.",subtitle:"In order to view our awesome content we need to verify your age",button:"Let me in",age:"18",showError:false,error:"",opacity:1,process:""};var b=a.extend(c,b);return this.each(function(){function l(){return k("v_age")}function k(a){var b,c,d,e=document.cookie.split(";");for(b=0;bb;d--){c=c+""}return c}var c=a(this);var d=b;var e=l();if(!e){a("html:not(:animated),body:not(:animated)").animate({scrollTop:0},20);var f='
\n\t\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t';a("body").append(f).addClass("o-hidden");a("#overlay").css("opacity",d.opacity)}a("#verify").submit(function(b){var c=a(this).serializeArray();var e=0;for(var f in c){if(!c[f].value){e=1}}if(!e){var g=h(c);if(g){if(d.process){a.ajax({url:d.process,data:c,type:"post"})}a("#block-container").fadeOut("medium",function(){a("body").removeClass("o-hidden");j("v_age",true,30);a(this).remove()})}else{i()}}else{i()}b.preventDefault()})})}})})(jQuery)