1var widgetsubmit;function detectIE(){var ua=window.navigator.userAgent;var msie=ua.indexOf('MSIE ');if(msie>0){return parseInt(ua.substring(msie+5,ua.indexOf('.',msie)),10);} 2var trident=ua.indexOf('Trident/');if(trident>0){var rv=ua.indexOf('rv:');return parseInt(ua.substring(rv+3,ua.indexOf('.',rv)),10);} 3var edge=ua.indexOf('Edge/');if(edge>0){return parseInt(ua.substring(edge+5,ua.indexOf('.',edge)),10);} 4return false;} 5function recaptchaCallbackk(){if(jQuery('#recaptcha-securet').length){var sitekey=jQuery('#recaptcha-securet').data('sitekey');widgetsubmit=grecaptcha.render(document.getElementById('recaptcha-securet'),{'sitekey':sitekey})}} 6window.onload=recaptchaCallbackk;jQuery(document).on('submit','#lp-submit-form',function(e){jQuery('.error_box').hide('');jQuery('.error_box').html('');jQuery('.error_box').text('');jQuery('.username-invalid-error').html('');jQuery('.username-invalid-error').text('');var $this=jQuery(this);jQuery('span.email-exist-error').remove();jQuery('input').removeClass('error-msg');jQuery('textarea').removeClass('error-msg');var checkforgallery=false;if(jQuery('.jFiler-input-dragDrop .jFiler-input-inner .filediv input').hasClass('lp-required-field')){checkforgallery=true;} 7if(checkforgallery){if(jQuery('div.filediv').length>1){jQuery('.jFiler-input-dragDrop').css('border-color','#C8CBCE');jQuery('.jFiler-input-dragDrop .jFiler-input-inner .filediv input').removeClass('error-msg');}else{jQuery('.jFiler-input-dragDrop').css('border-color','#eb5439');jQuery('.jFiler-input-dragDrop .jFiler-input-inner .filediv input').addClass('error-msg');}} 8var checkforfimage=false;if(jQuery('#lp-featuredimage').hasClass('lp-required-field')){checkforfimage=true;} 9if(checkforfimage){if(document.getElementById("lp-featuredimage").files.length!=0){jQuery('.featured-img-label').css('border-color','#C8CBCE');jQuery('#lp-featuredimage').removeClass('error-msg');}else{jQuery('.featured-img-label').css('border-color','#eb5439');jQuery('#lp-featuredimage').addClass('error-msg');}} 10var checkforblogo=false;if(jQuery('#business_logo').hasClass('lp-required-field')){checkforblogo=true;} 11if(checkforblogo){if(document.getElementById("business_logo").files.length!=0){jQuery('.b-logo-img-label').css('border-color','#C8CBCE');jQuery('#business_logo').removeClass('error-msg');}else{jQuery('.b-logo-img-label').css('border-color','#eb5439');jQuery('#business_logo').addClass('error-msg');}} 12if(jQuery('#citiess').hasClass('lp-required-field')){if(jQuery('.lp-selected-locs .lpsinglelocselected').length>0){jQuery('#citiess').removeClass('lp-required-field');}} 13if(jQuery('#inputAddresss,#inputAddress').hasClass('lp-required-field')){if(jQuery('#inputAddresss').val()!=''){jQuery('#inputAddress').removeClass('lp-required-field');if(!jQuery('#inputAddresss').hasClass('lp-required-field')){jQuery('#inputAddresss').addClass('lp-required-field');}} 14else if(jQuery('#inputAddress').val()!=''){jQuery('#inputAddresss').removeClass('lp-required-field');if(!jQuery('#inputAddress').hasClass('lp-required-field')){jQuery('#inputAddress').addClass('lp-required-field');}}} 15var is_valid_form=true;$this.find('input.lp-required-field, select.lp-required-field, textarea.lp-required-field').each(function(){var tag_name=jQuery(this).prop("tagName").toLowerCase();var field_val=jQuery(this).val();if((jQuery(this).attr('id')=='inputUsername')||(jQuery(this).attr('id')=='inputUserpass')||(jQuery(this).attr('id')=='inputEmail')||(jQuery(this).attr('id')=='customUname')){if(jQuery('#already-account').is(':checked')){if(jQuery('input#inputUsername').val()==''||jQuery('input#inputUserpass').val()==''){jQuery('input#inputUsername').addClass('error-msg');jQuery('input#inputUserpass').addClass('error-msg');is_valid_form=false;}else{jQuery('input#inputEmail').removeClass('error-msg');}}else{if(jQuery('input#inputEmail').val()==''){jQuery('input#inputEmail').addClass('error-msg');is_valid_form=false;}else{jQuery('input#inputEmail').removeClass('error-msg');} 16if(jQuery('input#customUname').length>0){if(jQuery('input#customUname').val()==''){jQuery('input#customUname').addClass('error-msg');is_valid_form=false;}else{jQuery('input#customUname').removeClass('error-msg');}}}}else{if(field_val==''){if(tag_name==='select'){jQuery(this).next().addClass('error-msg');}else if(jQuery(this).hasClass('wp-editor-area')){jQuery(this).closest(".wp-editor-container").addClass('error-msg');}else{jQuery(this).addClass('error-msg');} 17is_valid_form=false;}else{if(tag_name==='select'){jQuery(this).next().removeClass('error-msg');}else if(jQuery(this).hasClass('wp-editor-area')){jQuery(this).closest(".wp-editor-container").removeClass('error-msg');}else{jQuery(this).removeClass('error-msg');}}}});var checksocial=false;if(jQuery('.required-social-media').length>0){checksocial=true;} 18if(checksocial){if(jQuery('.style2-social-list-section .social-row').length>0){jQuery('#get_media_url').removeClass('error');jQuery('#get_media_url').removeClass('error-msg');jQuery('#select2-get_media-container').removeClass('error');jQuery('#select2-get_media-container').removeClass('error-msg');if(is_valid_form===true){is_valid_form=true;}}else{jQuery('#get_media_url').addClass('error');jQuery('#get_media_url').addClass('error-msg');jQuery('#select2-get_media-container').addClass('error');jQuery('#select2-get_media-container').addClass('error-msg');if(is_valid_form===true){is_valid_form=false;}}} 19if(is_valid_form===true){$this.find('.preview-section .fa-angle-right').removeClass('fa-angle-right');$this.find('.preview-section .fa').addClass('fa-spinner fa-spin');jQuery('.bottomofbutton.lpsubmitloading').addClass('fa-spinner fa-spin');jQuery('.loaderoneditbutton.lpsubmitloading').addClass('fa-spinner fa-spin');isCaptcha=jQuery(this).data('lp-recaptcha');siteKey=jQuery(this).data('lp-recaptcha-sitekey');token='';var fd=new FormData(this);
19$maxAlloedSize=parseInt(jQuery('#lp-submit-form').data('imgsize'));$totalAlloedImgs=parseInt(jQuery('#lp-submit-form').data('imgcount'));if(detectIE()==false){var $fullbrowserdet=navigator.sayswho;var $browserArray=$fullbrowserdet.split(" ");if($browserArray[0]=="Safari"){if($browserArray[1]>=12){fd.delete('listingfiles[]');fd.delete('lp-featuredimage[]');fd.delete('business_logo[]');}}else{fd.delete('listingfiles[]');fd.delete('lp-featuredimage[]');fd.delete('business_logo[]');}} 20$totalfilesize=0;var lpcount=0;var lpcountsize=0;$totalfilesize=jQuery('.lplistgallery').attr('data-savedgallweight');$selectedImagesCount=jQuery('.lplistgallery').attr('data-savedgallerysize');if(jQuery("input[name='listingfiles[]']").length){jQuery.each(jQuery("input[name='listingfiles[]']"),function(k,files){jQuery.each(jQuery("input[name='listingfiles[]']")[k].files,function(i,file){if(file.size>1||file.fileSize>1){fd.append('listingfiles['+lpcount+']',file);lpcount++;}});});} 21$AlloedSize=true;$Alloedimgcount=true;if(!isNaN($totalfilesize)){if($totalfilesize>$maxAlloedSize){msgf=jQuery('#lp-submit-form').data('sizenotice');var resError={response:'fail',msg:msgf};listing_ajax_response_notice(resError);$this.find('.preview-section').addClass('fa-angle-right');jQuery('.lpsubmitloading').addClass('fa-angle-right');$this.find('.preview-section .fa').removeClass('fa-spinner fa-spin');jQuery('.bottomofbutton.lpsubmitloading').removeClass('fa-spinner fa-spin');jQuery('.loaderoneditbutton.lpsubmitloading').removeClass('fa-spinner fa-spin');$AlloedSize=false;return false;}} 22if($selectedImagesCount>$totalAlloedImgs){msgf=jQuery('#lp-submit-form').data('countnotice');var resError={response:'fail',msg:msgf};listing_ajax_response_notice(resError);jQuery('.lpsubmitloading').addClass('fa-angle-right');$this.find('.preview-section').addClass('fa-angle-right');$this.find('.preview-section .fa').removeClass('fa-spinner fa-spin');jQuery('.bottomofbutton.lpsubmitloading').removeClass('fa-spinner fa-spin');jQuery('.loaderoneditbutton.lpsubmitloading').removeClass('fa-spinner fa-spin');$Alloedimgcount=false;}else{if(jQuery("input[name='business_logo[]']").length){fd.append('business_logo[]',jQuery("input[name='business_logo[]']")[0].files[0]);} 23if(jQuery("input[name='lp-featuredimage[]']").length){fd.append('lp-featuredimage[]',jQuery("input[name='lp-featuredimage[]']")[0].files[0]);} 24jQuery("#listingsubmitBTN").prop('disabled',!0);fd.append('action','listingpro_submit_listing_ajax');if(jQuery('#already-account').is(':checked')){fd.append('processLogin','yes')}else{fd.append('processLogin','no')} 25var postContent=tinymce.editors.inputDescription.getContent();if(postContent!=''||postContent!=null||postContent!=!1){fd.append('postContent',postContent)}else{fd.append('postContent','')} 26if($Alloedimgcount==true){fd.append('imageCount',lpcount)} 27if((isCaptcha==''||isCaptcha===null)||(siteKey==''||siteKey===null)){jQuery.ajax({type:'POST',url:ajax_listingpro_submit_object.ajaxurl,data:fd,contentType:!1,processData:!1,success:function(res){var resp=jQuery.parseJSON(res);listing_ajax_response_notice(resp);if(resp.response==="fail"){jQuery("#listingsubmitBTN").prop('disabled',!1);jQuery.each(resp.status,function(k,v){if(k==="postTitle"){jQuery("input:text[name='postTitle']").addClass('error-msg')}else if(k==="gAddress"){jQuery("input:text[name='gAddress']").addClass('error-msg')}else if(k==="category"){jQuery("#inputCategory_chosen").find('a.chosen-single').addClass('error-msg');jQuery("#inputCategory").next('.select2-container').find('.selection').find('.select2-selection--single').addClass('error-msg');jQuery("#inputCategory").next('.select2-container').find('.selection').find('.select2-selection--multiple').addClass('error-msg')}else if(k==="location"){jQuery("#inputCity_chosen").find('a.chosen-single').addClass('error-msg');jQuery("#inputCity").next('.select2-container').find('.selection').find('.select2-selection--single').addClass('error-msg');jQuery("#inputCity").next('.select2-container').find('.selection').find('.select2-selection--multiple').addClass('error-msg')}else if(k==="postContent"){jQuery("textarea[name='postContent']").addClass('error-msg');
27jQuery("#lp-submit-form .wp-editor-container").addClass('error-msg')}else if(k==="email"){jQuery("input#inputEmail").addClass('error-msg')}else if(k==="inputUsername"){jQuery("input#inputUsername").addClass('error-msg')}else if(k==="inputUserpass"){jQuery("input#inputUserpass").addClass('error-msg')}});var errorrmsg=jQuery("input[name='errorrmsg']").val();$this.find('.preview-section .fa-spinner').removeClass('fa-spinner fa-spin');$this.find('.preview-section .fa').addClass('fa-times');$this.find('.preview-section').find('.error_box').text(errorrmsg).show();jQuery('.bottomofbutton.lpsubmitloading').removeClass('fa-spinner fa-spin');jQuery('.bottomofbutton.lpsubmitloading').addClass('fa-times');jQuery('.loaderoneditbutton.lpsubmitloading').removeClass('fa-spinner fa-spin');jQuery('.loaderoneditbutton.lpsubmitloading').addClass('fa-times');}else if(resp.response==="failure"){if(jQuery('#already-account').is(':checked')){jQuery('.lp-submit-have-account').append(resp.status)}else{jQuery("input#inputEmail").after(resp.status);jQuery("div#inputEmail").after(resp.status)} 28$this.find('.preview-section .fa-spinner').removeClass('fa-spinner fa-spin');$this.find('.preview-section .fa').addClass('fa-angle-right');jQuery("#listingsubmitBTN").prop('disabled',!1);jQuery('.bottomofbutton.lpsubmitloading').removeClass('fa-spinner fa-spin');jQuery('.bottomofbutton.lpsubmitloading').addClass('fa-times');jQuery('.loaderoneditbutton.lpsubmitloading').removeClass('fa-spinner fa-spin');jQuery('.loaderoneditbutton.lpsubmitloading').addClass('fa-times');}else if(resp.response==="success"){$this.find('.preview-section .fa-spinner').removeClass('fa-times');$this.find('.preview-section .fa-spinner').removeClass('fa-spinner fa-spin');$this.find('.preview-section .fa').addClass('fa-check');jQuery('.bottomofbutton.lpsubmitloading').removeClass('fa-times');jQuery('.bottomofbutton.lpsubmitloading').addClass('fa-check');jQuery('.loaderoneditbutton.lpsubmitloading').removeClass('fa-spinner fa-spin');jQuery('.loaderoneditbutton.lpsubmitloading').removeClass('fa-angle-right');jQuery('.loaderoneditbutton.lpsubmitloading').addClass('fa-check');var redURL=resp.status;function redirectPageNow(){window.location.href=redURL} 29setTimeout(redirectPageNow,1000)}},error:function(request,error){$this.find('.preview-section .fa-spinner').removeClass('fa-times');$this.find('.preview-section .fa-spinner').removeClass('fa-spinner fa-spin');$this.find('.preview-section .fa').addClass('fa-times');alert(error)}});}else{grecaptcha.ready(function(){grecaptcha.execute(siteKey,{action:'lp_submitlisting'}).then(function(token){fd.append('recaptha-action','lp_submitlisting');fd.append('token',token);jQuery.ajax({type:'POST',url:ajax_listingpro_submit_object.ajaxurl,data:fd,contentType:!1,processData:!1,success:function(res){var resp=jQuery.parseJSON(res);listing_ajax_response_notice(resp);if(resp.response==="fail"){jQuery("#listingsubmitBTN").prop('disabled',!1);jQuery.each(resp.status,function(k,v){if(k==="postTitle"){jQuery("input:text[name='postTitle']").addClass('error-msg')}else if(k==="gAddress"){jQuery("input:text[name='gAddress']").addClass('error-msg')}else if(k==="category"){jQuery("#inputCategory_chosen").find('a.chosen-single').addClass('error-msg');jQuery("#inputCategory").next('.select2-container').find('.selection').find('.select2-selection--single').addClass('error-msg');jQuery("#inputCategory").next('.select2-container').find('.selection').find('.select2-selection--multiple').addClass('error-msg')}else if(k==="location"){jQuery("#inputCity_chosen").find('a.chosen-single').addClass('error-msg');jQuery("#inputCity").next('.select2-container').find('.selection').find('.select2-selection--single').addClass('error-msg');jQuery("#inputCity").next('.select2-container').find('.selection').find('.select2-selection--multiple').addClass('error-msg')}else if(k==="postContent"){jQuery("textarea[name='postContent']").addClass('error-msg');jQuery("#lp-submit-form .wp-editor-container").addClass('error-msg')}else if(k==="email"){jQuery("input#inputEmail").addClass('error-msg')}else if(k==="inputUsername"){jQuery("input#inputUsername").addClass('error-msg')}else if(k==="inputUserpass"){jQuery("input#inputUserpass").addClass('error-msg')}});var errorrmsg=jQuery("input[name='errorrmsg']").val();$this.find('.preview-section .fa-spinner').removeClass('fa-spinner fa-spin');$this.find('.preview-section .fa').addClass('fa-times');$this.find('.preview-section').find('.error_box').text(errorrmsg).show();jQuery('.bottomofbutton.lpsubmitloading').removeClass('fa-spinner fa-spin');jQuery('.bottomofbutton.lpsubmitloading').addClass('fa-times');jQuery('.loaderoneditbutton.lpsubmitloading').removeClass('fa-spinner fa-spin');jQuery('.loaderoneditbutton.lpsubmitloading').addClass('fa-times');}else if(resp.response==="failure"){if(jQuery('#already-account').is(':checked')){jQuery('.lp-submit-have-account').append(resp.status)}else{jQuery("input#inputEmail").after(resp.status);jQuery("div#inputEmail").after(resp.status)} 30$this.find('.preview-section .fa-spinner').removeClass('fa-spinner fa-spin');$this.find('.preview-section .fa').addClass('fa-angle-right');jQuery("#listingsubmitBTN").prop('disabled',!1);jQuery('.bottomofbutton.lpsubmitloading').removeClass('fa-spinner fa-spin');jQuery('.bottomofbutton.lpsubmitloading').addClass('fa-times');jQuery('.loaderoneditbutton.lpsubmitloading').removeClass('fa-spinner fa-spin');jQuery('.loaderoneditbutton.lpsubmitloading').addClass('fa-times');}else if(resp.response==="success"){$this.find('.preview-section .fa-spinner').removeClass('fa-times');$this.find('.preview-section .fa-spinner').removeClass('fa-spinner fa-spin');$this.find('.preview-section .fa').addClass('fa-check');jQuery('.bottomofbutton.lpsubmitloading').removeClass('fa-times');jQuery('.bottomofbutton.lpsubmitloading').addClass('fa-check');jQuery('.loaderoneditbutton.lpsubmitloading').removeClass('fa-spinner fa-spin');jQuery('.loaderoneditbutton.lpsubmitloading').removeClass('fa-angle-right');jQuery('.loaderoneditbutton.lpsubmitloading').addClass('fa-check');var redURL=resp.status;function redirectPageNow(){window.location.href=redURL} 31setTimeout(redirectPageNow,1000)}},error:function(request,error){if(!jQuery('#recaptcha-securet').length===0){lp_reset_grecaptcha()} 32$this.find('.preview-section .fa-spinner').removeClass('fa-times');$this.find('.preview-section .fa-spinner').removeClass('fa-spinner fa-spin');$this.find('.preview-section .fa').addClass('fa-times');alert(error)}});});})}}}
32else{var error_msg='Sorry! There is problem in your submission';if(jQuery('.lp-notifaction-error').length>0){error_msg=jQuery('.lp-notifaction-error').data('error-msg');} 33var resp={response:'fail',msg:error_msg};listing_ajax_response_notice(resp);return false;} 34e.preventDefault()});function listing_ajax_response_notice(res){if(res.response=='success'){jQuery('.lp-notifaction-area').find('h4').text(res.msg);jQuery('.lp-notifaction-area').removeClass('lp-notifaction-error').addClass('lp-notifaction-success');jQuery('.lp-notifaction-area').addClass('active-wrap');} 35if(res.response=='fail'||res.response=='failure'){jQuery('.lp-notifaction-area').find('h4').text(res.msg);jQuery('.lp-notifaction-area').removeClass('lp-notifaction-success').addClass('lp-notifaction-error');jQuery('.lp-notifaction-area').addClass('active-wrap');}} 36navigator.sayswho=(function(){var ua=navigator.userAgent,tem,M=ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];if(/trident/i.test(M[1])){tem=/\brv[ :]+(\d+)/g.exec(ua)||[];return'IE '+(tem[1]||'');} 37if(M[1]==='Chrome'){tem=ua.match(/\b(OPR|Edge)\/(\d+)/);if(tem!=null)return tem.slice(1).join(' ').replace('OPR','Opera');} 38M=M[2]?[M[1],M[2]]:[navigator.appName,navigator.appVersion,'-?'];if((tem=ua.match(/version\/(\d+)/i))!=null)M.splice(1,1,tem[1]);return M.join(' ');})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.