var sayhello var startTime var timer var timeLimit = 5 hideField("cfg_id"); hideField("cfg_eventid"); hideField("cfg_orderid"); if ( window.history.replaceState ) { window.history.replaceState( null, null, window.location.href ); } if (websiteCountry == "in") { $('#cfg_phone').attr('required', 'true'); $("#label_cfg_phone").show() $("#cfg_phone").show() } $('#cfg_country').on('blur', function() { if ($(this).find('option:selected').val() === "356") { $('#cfg_phone').attr('required', 'true'); $("#label_cfg_phone").show() $("#cfg_phone").show() } }); function hideField(field) { $("#"+ field).css("display", "none"); $("label[for='" + field + "']").css("display", "none"); notMandatory(field); $("#"+ field).removeClass("needs_input"); } function closeLargeFlag() { event.stopPropagation(); $(".contactflag_large").slideUp(400); $(".contactflag").addClass("contactflag_small"); $(".contactflag img").addClass("contactflag_img_small"); } function openLargeFlag() { $(".contactflag_large").slideDown(400); $(".contactflag").removeClass("contactflag_small") $(".contactflag img").removeClass("contactflag_img_small"); document.cookie = "contactform_flag=seen; expires=0; path=/"; } function loadCountries() { if((!user) || (user)) { customerAPI.CountriesNames().then(function (data) { $.each(data, function() { $("#cfg_country").append($("