{"size": 3842, "ext": "js", "max_stars_repo_path": "hypo_final/js/uncompressed/pageScript.js", "max_stars_repo_name": "damianwebelevate/code_Base", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "hypo_final/js/uncompressed/pageScript.js", "max_issues_repo_name": "damianwebelevate/code_Base", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "hypo_final/js/uncompressed/pageScript.js", "max_forks_repo_name": "damianwebelevate/code_Base", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 3842.0, "max_line_length": 3842, "alphanum_fraction": 0.673347215}
function resetForm(){$("#nameName").val(""),$("#emailEmail").val(""),$("textArea").val(""),$("#sendForm").removeAttr("disabled"),$("input, textarea").blur(),document.getElementById("getFeedback").reset()}var page1=$("#page1").offset(),page1Top=page1.top-90,page2=$("#page2").offset(),page2Top=page2.top-90,page3=$("#page3").offset(),page3Top=page3.top-90,page4=$("#page4").offset(),page4Top=page4.top-90,page5=$("#page5").offset(),page5Top=page5.top-90,page6=$("#page6").offset(),page6Top=page6.top-90;$("#topMenu li a").bind("click touchstart",function(e){e.preventDefault();var a=$(this).attr("href");switch($("a").removeClass("active"),a){case"#Home":$("html, body").stop().animate({scrollTop:page1Top},1e3,"linear"),$(this).addClass("active");break;case"#WhatIsHypocare":$("html, body").stop().animate({scrollTop:page2Top},1e3,"linear"),$(this).addClass("active");break;case"#Feedback":$("html, body").stop().animate({scrollTop:page4Top},1e3,"linear"),$(this).addClass("active");break;case"#WhereToBuy":$("html, body").stop().animate({scrollTop:page5Top},1e3,"linear"),$(this).addClass("active");break;case"#Contact":$("html, body").stop().animate({scrollTop:page6Top},1e3,"linear"),$(this).addClass("active");break;default:return}}),$("#nextPageButton").on("click",function(e){e.preventDefault(),$("html, body").stop().animate({scrollTop:page2Top},1e3,"linear"),$("a").removeClass("active"),$("#topMenu li:first-child a").addClass("active")}),$("#nextPageButtonTwo").on("click",function(e){e.preventDefault(),$("html, body").stop().animate({scrollTop:page3Top},1e3,"linear"),$("a").removeClass("active"),$("#topMenu li:first-child a").addClass("active")}),$("#nextPageButtonTwo").on("click",function(e){e.preventDefault(),$("html, body").stop().animate({scrollTop:page3Top},1e3,"linear"),$("a").removeClass("active"),$("#topMenu li:first-child a").addClass("active")}),$("#contactText").on("click",function(e){e.preventDefault(),$("html, body").stop().animate({scrollTop:page6Top},1e3,"linear"),$("a").removeClass("active"),$("#topMenu li:last-child a").addClass("active")}),$("#backToTop").on("click",function(){$("html, body").stop().animate({scrollTop:page1Top},1e3,"linear"),$("a").removeClass("active")}),$("#backToTopText").on("click",function(){$("html, body").stop().animate({scrollTop:page1Top},1e3,"linear"),$("a").removeClass("active")}),$("#homeMobile").on("click",function(){$("html, body").stop().animate({scrollTop:page1Top},1e3,"linear"),$("a").removeClass("active")}),$("#sendForm").bind("touchstart click",function(){$("#getFeedback").submit()}),$("input, textarea").bind("click touchstart focus",function(){$(this).focus()}),$("#getFeedback").on("submit",function(e){e.preventDefault();var a=$("#getFeedback").serialize(),t="/hypocare/includes/mail.php";$(".ajaxLoader").show(),$("#sendForm").attr("disabled","true"),$.ajax({url:t,data:a,type:"POST",dataType:"json",success:function(e){if($("#successArea").hide(),e.Error)for(var a in e.Error)$("#errorArea").html(e.Error[a]).show(),$(".ajaxLoader").hide(),setTimeout(function(){$("#errorArea").hide(),resetForm()},5e3);else $("#successArea").html(e.Mail).show(),$(".ajaxLoader").hide(),setTimeout(function(){$("#successArea").hide(),resetForm()},5e3)}})}),$("#nameName").on("keypress",function(){var e=$("#nameName").val().length+1;e>=30&&alert("max characters reached")}),$("#textArea").on("keypress",function(e){var a=$("#textArea").val().length+1;a>=500&&alert("max characheters reached")}),$("#emailEmail").on("keypress",function(e){var a=$("#emailEmail").val().length+1;a>=254&&alert("max characheters reached")}),function(e){jQuery(function(){if(jQuery("html").hasClass("touch")){alert("it does");var e=jQuery("body");jQuery(document).on("focus","input",function(a){e.addClass("fixfixed")}).on("blur","input",function(a){e.removeClass("fixfixed")})}})}(jQuery);