jQuery.noConflict(); jQuery(document).ready(function(){ jQuery("#footer .show-text").click(function(){ var footer_links = '
'; $('#foot-menu').html(footer_links); jQuery("#foot-menu").slideDown( 'slow'); jQuery(this).hide(); jQuery("#footer .hidedd").show(); var a=jQuery("#footer").offset().top;jQuery("body,html").animate({scrollTop:a},600); }); jQuery("#footer .hidedd").click(function(){ jQuery("#foot-menu").slideUp( 'slow'); jQuery(this).hide(); jQuery("#footer .show-text").show(); }); jQuery(".ani-ar-dwn").click(function(){ jQuery("#partners-part-logo").slideDown( 'slow'); jQuery(this).hide(); jQuery(".ani-up-dwn").show(); //var a=jQuery("#part-show").offset().top;jQuery("body,html").animate({scrollTop:a},100); }); jQuery(".ani-up-dwn").click(function(){ jQuery("#partners-part-logo").slideUp( 'slow'); jQuery(this).hide(); jQuery(".ani-ar-dwn").show(); }); jQuery(".btn-frm-index").click(function() { jQuery("#index-cntfrm").removeClass('hide'); }); jQuery(".can-btn").click(function() { jQuery("#index-cntfrm").addClass('hide'); }); function getMoreCountries(){ var country_set = ''; var country_setA = ''; country_set = country_set + country_setA; var country_setB = ''; country_set = country_set + country_setB; var country_setC = ''; country_set = country_set + country_setC; var country_setD = ''; country_set = country_set + country_setD; var country_setE = ''; country_set = country_set + country_setE; var country_setF = ''; country_set = country_set + country_setF; var country_setG = ''; country_set = country_set + country_setG; var country_setH = ''; country_set = country_set + country_setH; var country_setI = ''; country_set = country_set + country_setI; var country_setJ = ''; country_set = country_set + country_setJ; var country_setK = ''; country_set = country_set + country_setK; var country_setL = ''; country_set = country_set + country_setL; var country_setM = ''; country_set = country_set + country_setM; var country_setN = ''; country_set = country_set + country_setN; var country_setOR = ''; country_set = country_set + country_setOR; var country_setS = ''; country_set = country_set + country_setS; var country_setTZ = ''; country_set = country_set + country_setTZ; return country_set; } jQuery('#firstName').focus(function(){ country_set = getMoreCountries(); var country_setGen = ''; $('#contact_country').html(country_setGen); $('#contact_country').append(country_set); }); jQuery('#lets-firstName').focus(function(){ country_set = getMoreCountries(); var country_setGen = ''; $('#lets-contact_country').html(country_setGen); $('#lets-contact_country').append(country_set); }); jQuery.validator.setDefaults({ debug: true, success: "valid" }); jQuery("#submit_contact").click(function() { mixpanel.track('Contact Us - Unknown user clicked button.'); if(jQuery('#contact_form').valid()) { $(".contactfrm").hide(); $(".thanks-contact").show(); jQuery.post( "/leadmail.php", $( "#contact_form" ).serialize() ) .done(function( data ) { var fname = $.trim($('#contact_form').find('input[name="name"]').val()); var femail = $.trim($('#contact_form').find('input[name="email"]').val()); var h = new Date(); var k = (h.getMonth() + 1) + "_" + h.getDate() + "_" + h.getFullYear() + "_" + h.getHours() + "_" + h.getMinutes() + "_" + h.getSeconds(); var e = (h.getMonth() + 1) + "-" + h.getDate() + "-" + h.getFullYear(); var j = "Contact Form"; mixpanel.identify(k); mixpanel.people.set({ "$first_name": fname, "$created": e, "$email": femail, form_name: j }); mixpanel.track(fname + 'was submitted the contact us form.'); }); } /*jQuery("#contact_form").validate( { submitHandler: function(form) { $("#submit_contact").attr("disabled", true); $('.contactfrm').hide(); $('.thanks-contact').show(); $.post( "/leadmail.php", $( "#contact_form" ).serialize() ) .done(function( data ) { showcontacfrm(); }); } });*/ }); jQuery("#submit_notitle").click(function() { mixpanel.track('Notitle - Unknown user clicked button.'); if(jQuery('#contact_form_notitle').valid()) { $(".contactfrm-notitle").hide(); $(".thanks-contact-notitle").show(); var thanks_msg_cnt = 'One of our specialists will contact you shortly.