$(".form-get-quote").on("submit",function(e){var t=$(".form-get-quote"),a=$(this);e.preventDefault(),$("<input>",{name:"quote[URL]",value:JSON.stringify(window.location.href)}).appendTo(t);var r=$(a).serialize();return console.log(r),jQuery.ajax({url:window.location.href.substring(0,window.location.href.lastIndexOf("/")+1)+"sendmail",type:"POST",data:r,async:!1,dataType:"json",success:function(e){if(1!=e.status)return!1;alert("Submit Sucessfully"),a.trigger("reset"),window.location.href=window.origin+"/thank_you.php"},beforeSend:function(){}}),!1}),$(window).scroll(function(){$(window).scrollTop()>=300?$(".header").addClass("stickyheader"):$(".header").removeClass("stickyheader")});