PageSourceSearch

https://essays.discount/wp-content/themes/listingpro/assets/js/single-ajax.js

js essays.discount collected 2026-10-06 13:16:53 UTC 26,505 bytes, 732 lines download raw bytes

1 jQuery(document).ready(function($){
2	 jQuery('#claimform').on('submit', function(e){
3		$this = jQuery(this);
4		$this.find('.statuss').html('');
5		jQuery(this).find('.formsubmitting').css('visibility','visible');
6		e.preventDefault();
7		var formData = $(this).serialize();
8		
9		jQuery.ajax({
10            type: 'POST',
11            dataType: 'json',
12            url: single_ajax_object.ajaxurl,
13            data: { 
14                'action': 'listingpro_claim_list', 
15                'formData': formData, 
16			},   
17            success: function(res){
18				if (jQuery("form#claimform .g-recaptcha-response").length){
19					lp_reset_grecaptcha();
20				}
21				$this.find('.formsubmitting').css('visibility','hidden');
22                //alert(res.state);
23				$this.find('.statuss').html(res.state);
24				
25				$this[0].reset();
26            }
27        });
28		//return false;
29		 //alert(formData);
30	 });
31	 
32	  jQuery('#claimformmobile').on('submit', function(e){
33		$this = jQuery(this);
34		$this.find('.statuss').html('');
35		jQuery(this).find('.formsubmitting').css('visibility','visible');
36		e.preventDefault();
37		var formData = $(this).serialize();
38		
39		jQuery.ajax({
40            type: 'POST',
41            dataType: 'json',
42            url: single_ajax_object.ajaxurl,
43            data: { 
44                'action': 'listingpro_claim_list', 
45                'formData': formData, 
46			},   
47            success: function(res){
48				if (jQuery("form#claimformmobile .g-recaptcha-response").length){
49					lp_reset_grecaptcha();
50				}
51				$this.find('.formsubmitting').css('visibility','hidden');
52                //alert(res.state);
53				$this.find('.statuss').html(res.state);
54				
55				$this[0].reset();
56            }
57        });
58		//return false;
59		 //alert(formData);
60	 });
61
62
63
64     jQuery('#contactOwner').on('submit', function(e){
65
66         $this = jQuery(this);
67
68         e.preventDefault();
69
70         var lEmail     =   jQuery('#email7').val(),
71             lName      =   jQuery('#name7').val(),
72             lMsg       =   jQuery('#message7').val(),
73             proceedIt  =   true;
74
75         if( lEmail == '' || lName == '' || lMsg == '' )
76         {
77
78             if( lEmail == '' )
79             {
80                 jQuery('#email7').addClass('error-msg');
81             }
82             else
83             {
84                 jQuery('#email7').removeClass('error-msg');
85             }
86             if( lName == '' )
87             {
88                 jQuery('#name7').addClass('error-msg');
89             }
90             else
91             {
92                 jQuery('#name7').removeClass('error-msg');
93             }
94             if( lMsg == '' )
95             {
96                 jQuery('#message7').addClass('error-msg');
97             }
98             else
99             {
100                 jQuery('#message7').removeClass('error-msg');
101             }
102
103             proceedIt  =   false;
104         }
105         if( jQuery('input:checkbox.lp-required-field').length > 0 )
106         {
107             if (jQuery('input:checkbox.lp-required-field', this).is(':checked'))
108             {
109                 jQuery('input:checkbox.lp-required-field').closest('label' ).removeClass('error-msg');
110             }
111             else
112             {
113                 jQuery('input:checkbox.lp-required-field').closest('label' ).addClass('error-msg');
114                 proceedIt  =   false;
115             }
116         }
117         if( jQuery('input:radio.lp-required-field').length > 0 )
118         {
119             if(jQuery('input:radio.lp-required-field', this).is(':checked') )
120             {
121                 jQuery('input:radio.lp-required-field').closest('label' ).removeClass('error-msg');
122             }
123             else
124             {
125                 jQuery('input:radio.lp-required-field').closest('label' ).addClass('error-msg');
126                 proceedIt  =   false;
127
128             }
129         }
130
131         if( jQuery('#contactOwner .lp-required-field').length > 0 )
132         {
133             jQuery('#contactOwner .lp-required-field').each(function (index) {
134                 var $this      =   jQuery(this),
135                     $thisVal   =   $this.val(),
136                     $thisType  =   $this.attr('type');
137
138                 if( $this.prop('tagName') == 'SELECT' )
139                 {
140                     if( $thisVal == 0 )
141                     {
142                         proceedIt  =   false;
143                         $this.addClass('error-msg');
144                     }
145                     else
146                     {
147                         $this.removeClass('error-msg');
148                     }
149                 }
150                 else
151                 {
152
153                     if( $thisVal == '' )
154                     {
155                         proceedIt  =   false;
156                         $this.addClass('error-msg');
157                         alert('5');
158                     }
159                     else
160                     {
161                         $this.removeClass('error-msg');
162                     }
163                 }
164
165             });
166         }
167         if( proceedIt === false )
168         {
169             return proceedIt;
170         }
171
172
173
174         var formData = $(this).serialize();
175         $this.find('.lp-search-icon').removeClass('fa-send');
176         $this.find('.lp-search-icon').addClass('fa-spinner fa-spin');
177
178         jQuery.ajax({
179             type: 'POST',
180             dataType: 'json',
181             url: single_ajax_object.ajaxurl,
182             data: {
183                 'action': 'listingpro_contactowner',
184                 'formData': formData,
185             },
186             success: function(res){
187                 if (jQuery("form#contactOwner .g-recaptcha-response").length){
188                     lp_reset_grecaptcha();
189                 }
190                 if(res.result==="fail"){
191                     jQuery.each(res.errors, function (k, v) {
192                         if(k==="email"){
193                             jQuery("input[name='email7']").addClass('error-msg');
194                         }
195                         if(k==="message"){
196                             jQuery("textarea[name='message7']").addClass('error-msg');
197                         }
198                         if(k==="name7"){
199                             jQuery("input[name='name7']").addClass('error-msg');
200                         }
201                         $this.find('.lp-search-icon').removeClass('fa-spinner fa-spin');
202                         $this.find('.lp-search-icon').addClass('fa-cross');
203                         //$this.append(res.state);
204                     });
205                 }
206                 else{
207                     $this.find('.lp-search-icon').removeClass('fa-spinner fa-spin');
208                     $this.find('.lp-search-icon').addClass('fa-check');
209                     // success msg.
210                     jQuery('.lp-lead-success-msg-outer').fadeIn('700');
211                     //$this.append(res.state);
212                     $this[0].reset();
213                 }
214             }
215         });
216         //return false;
217         //alert(formData);
218
219     });
220	 
221	 
222/* jquery ajax code for expired listing plan change */
223	jQuery('.lp-change-proceed-link').on('click', function(e){
224		jQuery('div.lp-existing-plane-container').slideToggle(700);
225		jQuery('div.lp-new-plane-container').slideToggle(700);
226		e.preventDefault();
227	})
228	
229	jQuery('.lp-role-back-to-current-plan').on('click', function(e){
230		jQuery('div.lp-existing-plane-container').slideToggle(700);
231		jQuery('div.lp-new-plane-container').slideToggle(700);
232		e.preventDefault();
233	})
234	
235	
236	jQuery('.lp-change-plan-btn').on('click', function(e){
237		var listing_id = '';
238		var listing_status = '';
239		var plan_title = '';
240		var plan_price = '';
241		var haveplan = '';
242		listing_id = jQuery(this).data('listingid');
243		plan_title = jQuery(this).data('plantitle');
244		plan_price = jQuery(this).data('planprice');
245		haveplan = jQuery(this).data('haveplan');
246		listing_status = jQuery(this).data('listingstatus');
247		jQuery('.lp-selected-plan-price h3' ).html('');
248		jQuery('.lp-selected-plan-price h3' ).text(plan_title);
249		jQuery('.lp-selected-plan-price h4' ).html('');
250		jQuery('.lp-selected-plan-price h4' ).html(plan_price);
251		jQuery('#select-plan-form input#listing_id' ).val(listing_id);
252		jQuery('#select-plan-form input#listing_statuss' ).val(listing_status);
253		//jQuery('.pay-again-button').removeClass('lp-new-button-added');
254		//jQuery(this).closest('li').next('.pay-again-button').addClass('lp-new-button-added');
255		e.preventDefault();
256	});
257	jQuery('#select-plan-form').submit(function(event){
258		var plan_id = '';
259		$this = jQuery(this);
260		listing_idd = '';
261		listing_status = '';
262		listing_idd = jQuery("input[name='plans-posts']:checked").val();
263		listing_id = jQuery("input[name='listing-id']").val();
264		listing_status = jQuery("input[name='listing_status']").val();
265		jQuery('.lp-change-plane-status .lp-action-div').html('');
266		if( typeof(listing_idd)  !== "undefined" ){
267			jQuery("div.lp-expire-update-status").html('<i class="fa fa-circle-o-notch fa-spin fa-2x fa-fw"></i>');
268			jQuery.ajax({
269				type: 'POST',
270				dataType: 'json',
271				url: single_ajax_object.ajaxurl,
272				data: { 
273					'action': 'listingpro_change_plan', 
274					'ch_plan_id': listing_idd, 
275					'ch_listing_id': listing_id, 
276					'ch_listing_status': listing_status, 
277				},   
278				success: function(data){
279					//jQuery('#select-plan-form')[0].reset();
280					if( data.subscribed ){
281						if(data.subscribed=="yes"){
282							alert(data.alertmsg);
283						}
284					}
285					jQuery("div.lp-expire-update-status").html('');
286					jQuery('.lp-change-plane-status .lp-action-div').html('');
287					jQuery('.lp-change-plane-status .lp-action-div').html(data.action);
288					
289				}
290			});
291			
292		}
293		event.preventDefault();
294	})
295	 
296 });
297 
298 
299 /* change plan proceedings */
300 jQuery(document).on('click', '.lp_change_plan_action', function(e){
301	 var planid = jQuery('.lp-action-div input[name="planid"]').val();
302	 var listingid = jQuery('.lp-action-div input[name="listingid"]').val();
303	 jQuery('.lp-action-div').html('');
304	 jQuery("div.lp-expire-update-status").html('<i class="fa fa-circle-o-notch fa-spin fa-2x fa-fw"></i>');
305	 jQuery.ajax({
306				type: 'POST',
307				dataType: 'json',
308				url: single_ajax_object.ajaxurl,
309				data: { 
310					'action': 'listingpro_change_plan_proceeding', 
311					'plan_iddd': planid, 
312					'listing_iddd': listingid, 
313				},   
314				success: function(data){
315					//jQuery('#select-plan-form')[0].reset();
316					jQuery("div.lp-expire-update-status").html('');
317					jQuery("div.lp-expire-update-status").html(data.message);
318				}
319			});
320	 
321	 e.preventDefault();
322 })
323 /* end change plan proceedings */ 
324 
325 /* delete subscription proceedings */
326jQuery(document).on('click', 'a.delete-subsc-btn', function(e){
327
328     e.preventDefault();
329	 var $this = jQuery(this),
330         cMsg   =   $this.data('cmsg');
331
332
333     var r = confirm(cMsg);
334     if( r == true )
335     {
336         jQuery('body').addClass('listingpro-loading');
337         var subscript_id = jQuery(this).attr('href');
338         jQuery.ajax({
339             type: 'POST',
340             dataType: 'json',
341             url: single_ajax_object.ajaxurl,
342             data: {
343                 'action': 'listingpro_cancel_subscription_proceeding',
344                 'subscript_id': subscript_id,
345             },
346             success: function(data){
347                 jQuery('body').removeClass('listingpro-loading');
348                 alert(data.msg);
349                 if(data.status=="success"){
350                     $this.closest('tr').slideToggle();
351                 }
352
353             },
354             error: function(jqXHR, textStatus, errorThrown) {
355                 jQuery('body').removeClass('listingpro-loading');
356                 console.log(textStatus, errorThrown);
357             }
358         });
359     }
360
361
362 });
363 
364 /* Report listing or Report Review */
365 jQuery(document).on('click', '#lp-report-listing a#lp-report-this-listing, #lp-report-review a#lp-report-this-review, .lp-review-right-bottom a#lp-report-this-review', function(e){
366	 var $this = jQuery(this);
367	 var $posttype = $this.data('posttype');
368	 var $postid = $this.data('postid');
369	 var $reportedby = $this.data('reportedby');
370	 jQuery('body').addClass('listingpro-loading');
371	 jQuery.ajax({
372				type: 'POST',
373				dataType: 'json',
374				url: single_ajax_object.ajaxurl,
375				data: { 
376					'action': 'listingpro_report_this_post', 
377					'posttype': $posttype, 
378					'postid': $postid, 
379					'reportedby': $reportedby 
380				},   
381				success: function(data){
382					jQuery('body').removeClass('listingpro-loading');
383					jQuery('div.lp-top-notification-bar').html('');
384					var alertmsgs = '';
385					if(data.status==="success"){
386						alertmsgs = '<div class="lp-reporting-success">
386'+data.msg+'</div>';
387						jQuery('div.lp-top-notification-bar').html(alertmsgs);
388					}
389					else{
390						alertmsgs = '<div class="lp-reporting-error">'+data.msg+'</div>';
391						jQuery('div.lp-top-notification-bar').html(alertmsgs);
392					}
393					jQuery('div.lp-top-notification-bar').slideDown('slow').delay(2000).slideUp('slow');
394					//alert(data.msg);
395					
396				},
397				error: function(jqXHR, textStatus, errorThrown) {
398					jQuery('body').removeClass('listingpro-loading');
399					console.log(textStatus, errorThrown);
400				}
401			});
402	 
403	 e.preventDefault();
404 })
405
406
407 /* lp bar graph print options */
408
409 jQuery(document).on('click', 'div.lp_user_stats_btn, ul li .lp_stats_duratonBtn', function(e){
410     $this = jQuery(this);
411     if($this.hasClass('active') && ($this.hasClass('lp_user_stats_btn'))){}else{
412         jQuery('div.lp_user_stats_btn').removeClass('active');
413         jQuery( "#lpgraph" ).empty();
414         $duration = jQuery('ul li .lp_stats_duratonBtn.active').data('chartduration');
415         $type = $this.data('type');
416         jQuery('ul.lp_stats_duration_filter li button').data('type', $type);
417         jQuery('body').addClass('listingpro-loading');
418         jQuery.ajax({
419             type: 'POST',
420             dataType: 'json',
421             url: single_ajax_object.ajaxurl,
422             data: {
423                 'action': 'listingpro_show_bar_chart',
424                 'type': $type,
425                 'duration': $duration,
426             },
427             success: function(data){
428                 jQuery('body').removeClass('listingpro-loading');
429                 jQuery('ul.lp_stats_duration_filter').show();
430                 showthischart(data.data, $type);
431                 jQuery('.lp_user_stats_btn.active p.lpstatsnumber').text('');
432                 jQuery('.lp_user_stats_btn.active p.lpstatsnumber').text(data.counts);
433                 jQuery('.lp_user_stats_btn.active').find('.lp_status_duration_counter').text('');
434                 jQuery('.lp_user_stats_btn.active').find('.lp_status_duration_counter').text(data.resp);
435                 //alert(data.msg);
436
437             },
438             error: function(jqXHR, textStatus, errorThrown) {
439                 jQuery('body').removeClass('listingpro-loading');
440                 console.log(textStatus, errorThrown);
441             }
442         });
443     }
444 });
445
446function showthischart($datarray, $type){
447	// Use Morris.Bar
448	Morris.Bar({
449	  element: 'lpgraph',
450	  data : $datarray,
451	  xkey: 'x',
452	  ykeys: ['y'],
453	  labels: [$type]
454	});
455	if($type=="view"){
456		jQuery('div.lpviewchart').addClass('active');
457	}else if($type=="leads"){
458		jQuery('div.lpviewleads').addClass('active');
459	}else if($type=="reviews"){
460		jQuery('div.lpviewreviews').addClass('active');
461	}
462}
463
464/* start for coupon button on checkout page */
465jQuery(document).on('click', 'button.coupon-apply-bt', function(){
466     var couponcode = jQuery('input[name=coupon-text-field]').val();
467     var $price = jQuery('input[name=listing_id]:checked').data('planprice');
468     var $listingID = jQuery('input[name=listing_id]:checked').val();
469     var $post_title = jQuery('input[name=listing_id]:checked').data('title');
470     var $planID = jQuery('input[name=listing_id]:checked').data('planid');
471     var $tax =jQuery('input[name=listing_id]:checked').data('taxenable');
472     var $taxRate = jQuery('input[name=listing_id]:checked').data('taxrate');
473
474     if(couponcode === ''){}else{
475         jQuery('body').addClass('listingpro-loading');
476         jQuery.ajax({
477             type: 'POST',
478             dataType: 'json',
479             url: single_ajax_object.ajaxurl,
480             data: {
481                 'action': 'listingpro_apply_coupon_code',
482                 'coupon': couponcode,
483                 'listingid': $listingID,
484                 'taxrate': $taxRate,
485                 'price': $price,
486             },
487             success: function(data){
488                 jQuery('body').removeClass('listingpro-loading');
489                 if(data.status=="success"){
490                     $discount = data.discount;
491                     $newprice = $discount/100;
492                     $newprice = $newprice*$price;
493                     $newprice = $price-$newprice;
494                     $newprice = parseFloat($newprice).toFixed(2);
495                     lp_add_checkout_data_fields_in_form($listingID, $post_title, $planID, $newprice, $tax, $taxRate);
496					  if(jQuery('li').hasClass('checkout_discount_val')){}else{
497					 jQuery('span.lp-subtotal-p-price').parent().after('<li class="checkout_discount_val"><span class="item-price-total-left lp-subtotal-plan">Discounted</span><span class="item-price-total-right lp-subtotal-p-prasaice">'+$discount+'%</span></li>');
498					  }
499                 }
500
501             },
502             error: function(jqXHR, textStatus, errorThrown) {
503                 jQuery('body').removeClass('listingpro-loading');
504                 console.log(textStatus, errorThrown);
505             }
506         });
507     }
508
509 });
510 
511 /* reset tax in database while switching offto discound */
512jQuery(document).on('click', 'input[name="lp_checkbox_coupon"]', function(){
513	if(jQuery(this).hasClass('active')){}else{
514		
515		 var couponcode = '';
516		 var $price = jQuery('input[name=listing_id]:checked').data('planprice');
517		 var $listingID = jQuery('input[name=listing_id]:checked').val();
518		 var $post_title = jQuery('input[name=listing_id]:checked').data('title');
519		 var $planID = jQuery('input[name=listing_id]:checked').data('planid');
520		 var $tax =jQuery('input[name=listing_id]:checked').data('taxenable');
521		 var $taxRate = jQuery('input[name=listing_id]:checked').data('taxrate');
522		 
523		 jQuery.ajax({
524             type: 'POST',
525             dataType: 'json',
526             url: single_ajax_object.ajaxurl,
527             data: {
528                 'action': 'listingpro_apply_coupon_code',
529                 'coupon': couponcode,
530                 'listingid': $listingID,
531                 'taxrate': $taxRate,
532                 'price': $price,
533             },
534             success: function(data){
535                 jQuery('body').removeClass('listingpro-loading');
536                 if(data.status=="success"){
537                     $discount = data.discount;
538                     $newprice = $discount/100;
539                     $newprice = $newprice*$price;
540                     $newprice = $price-$newprice;
541                     $newprice = parseFloat($newprice).toFixed(2);
542                     lp_add_checkout_data_fields_in_form($listingID, $post_title, $planID, $newprice, $tax, $taxRate);
543					  if(jQuery('li').hasClass('checkout_discount_val')){}else{
544					 jQuery('span.lp-subtotal-p-price').parent().after('<li class="checkout_discount_val"><span class="item-price-total-left lp-subtotal-plan">Discounted</span><span class="item-price-total-right lp-subtotal-p-prasaice">'+$discount+'%</span></li>');
545					  }
546                 }
547
548             },
549             error: function(jqXHR, textStatus, errorThrown) {
550                 jQuery('body').removeClass('listingpro-loading');
551                 console.log(textStatus, errorThrown);
552             }
553         });
554		 
555		
556	}
557     
558 });
559 
560 
561/* ajax call to reply to leads message */
562jQuery(document).on('submit', 'form[name=lp_leadReply]', function(e){
563	
564	$this = jQuery(this);
565	$this.find('.lpthisloading').show();
566	var fd = new FormData(this);
567	fd.append('action', 'lp_reply_to_lead_msg');
568	jQuery.ajax({
569            type: 'POST',
570            url: single_ajax_object.ajaxurl,
571            data:fd,  
572			contentType: false,
573			processData: false,
574            success: function(res){
575				$this.find('.lpthisloading').removeClass('fa-spinner fa-spin');
576				$this.find('.lpthisloading').addClass('fa-check');
577				window.location.href=window.location.href
578				$this[0].reset();
579            },
580			error: function(request, error){
581				//alert(error);
582				$this.find('.lpthisloading').removeClass('fa-spinner fa-spin');
583				$this.find('.lpthisloading').addClass('fa-check');
584				window.location.href=window.location.href
585			}
586        });
587	e.preventDefault();
588	return false;	
589});
590
591/* ajax call read message thread on click */
592 /* ajax call read message thread on click */
593 jQuery(document).on('click', '.lp-read-messages .lp-read-message-inner', function(e){
594     $this = jQuery(this);
595     $loaderImg = $this.data('loader');
596     $listingid = $this.data('listingid');
597     $useremail = $this.data('email');
598     if($listingid){
599         jQuery('.lpinboxmiddlepart').html('');
600         jQuery('.lpinboxrightpart').html('');
601         jQuery('.lpinboxmiddlepart').html('<div class="text-center loadercenterclass"><img src="'+$loaderImg+'" width=35 height=35></div>');
602         jQuery('.lpinboxrightpart').html('<div class="text-center loadercenterclass"><img src="'+$loaderImg+'" width=35 height=35></div>');
603         jQuery.ajax({
604             type: 'POST',
605             dataType: 'json',
606             url: single_ajax_object.ajaxurl,
607             data: {
608                 'action': 'lp_preview_this_message_thread',
609                 'listindid': $listingid,
610                 'useremail': $useremail,
611             },
612             success: function(data){
613                 jQuery('.lpinboxmiddlepart').html('');
614                 jQuery('.lpinboxrightpart').html('');
615                 jQuery('.lpinboxmiddlepart').html(data.outputcenter);
616                 jQuery('.lpinboxrightpart').html(data.outputright);
617
618             },
619             error: function(jqXHR, textStatus, errorThrown) {
620                 jQuery('.lpinboxmiddlepart').html('');
621                 jQuery('.lpinboxrightpart').html('');
622                 jQuery('.lpinboxmiddlepart').html(data.outputcenter);
623                 jQuery('.lpinboxrightpart').html(data.outputright);
624             }
625         });
626     }
627
628
629
630 });
631
632 /* function for Campaigns per click counter */
633
634 jQuery(document).on('click', 'body.home .listingcampaings .lp-grid-box-contianer .lp-grid-box .lp-h4 a, body.home .listingcampaings .lp-grid-box .lp-grid-box-thumb-container .lp-grid-box-thumb a, body.search .promoted-listings .lp-grid-box .lp-grid-box-thumb-container .lp-grid-box-thumb a, body.search .promoted-listings .lp-grid-box-contianer .lp-grid-box .lp-h4 a, body.archive .promoted-listings .lp-grid-box .lp-grid-box-thumb-container .lp-grid-box-thumb a, body.archive .promoted-listings .lp-grid-box-contianer .lp-grid-box .lp-h4 a, .promoted-listings .lp-grid-app-view .lp-grid-box .lp-grid-box-thumb .show-img a, .promoted-listings .lp-grid-app-view .lp-grid-box .lp-h4 a, .listingcampaings .lp-grid-app-view .lp-grid-box .lp-grid-box-thumb .show-img a, .single-listing .widget_listingpro_ads_widget .listing-post article figure a, .single-listing .widget_listingpro_ads_widget .listing-post article figure figcaption a.overlay-link, .single-listing .widget_listingpro_ads_widget .listing-post article figure figcaption h4 a,.single .widget_listingpro_ads_widget .listing-post article figure figcaption a.overlay-link,.single .widget_listingpro_ads_widget .listing-post article figure figcaption h4 a, body.home .listingcampaings .lp-listing .lp-listing-bottom h4 a,  body.home .listingcampaings .lp-listing .lp-listing-top-thumb a', function(){
635
636     $listingURL = jQuery(this).attr('href');
637     //search
638     $type = '';
639
640     if(jQuery('body').hasClass('search') || jQuery('body').hasClass('archive')){
641         $type = 'lp_top_in_search_page_ads_pc';
642     }
643     //home
644
645     if(jQuery('body').hasClass('home')){
646         $type = 'lp_random_ads_pc';
647     }
648     //detail
649     if(jQuery('body').hasClass('single-listing')){
650         $type = 'lp_detail_page_ads_pc';
651     }
652
653     jQuery.ajax({
654         type: 'POST',
655
656         dataType: 'json',
657
658         async:false,
659
660         url: single_ajax_object.ajaxurl,
661
662         data: {
663             'action': 'lp_count_clicks_for_campaigns',
664
665             'listingURL': $listingURL,
666
667             'type': $type,
668         },
669
670         success: function(data){
671
672             console.log(data);
673             window.location.href = $listingURL;
674
675         },
676
677         error: function(jqXHR, textStatus, errorThrown) {
678
679             console.log(errorThrown);
680
681         }
682
683     });
684
685 });
686/* ==================for saving id in session for checkout============= */
687 
688 jQuery(document).on('click', 'a.lp-pay-publish-btn, a.lp-listing-pay-button, input.lp-listing-pay-button', function(){
689	 $listingID = jQuery(this).data('lpthisid');
690	 jQuery.ajax({
691         type: 'POST',
692         dataType: 'json',
693         url: single_ajax_object.ajaxurl,
694         data: {
695             'action': 'lp_save_thisid_in_session',
696             'listing_id': $listingID,
697         },
698         success: function(data){
699             console.log(data);
700         },
701         error: function(jqXHR, textStatus, errorThrown) {
702             console.log(errorThrown);
703         }
704     });
705 });
706	
707/* ==================delete converstaion inbox============= */
708 
709 jQuery(document).on('click', 'button.lp-delte-conv', function(){
710	 $this = jQuery(jQuery(this));
711	 $emailid = jQuery(this).data('emailid');
712	 $listingid = jQuery(this).data('listingid');
713	 $this.closest('#lp-ad-click-inner').find('.lpthisloading').show();
714	 jQuery.ajax({
715         type: 'POST',
716         dataType: 'json',
717         url: single_ajax_object.ajaxurl,
718         data: {
719             'action': 'lp_delete_this_conversation',
720             'listingid': $listingid,
721             'emailid': $emailid,
722         },
723         success: function(data){
724            $this.closest('#lp-ad-click-inner').find('.lpthisloading').removeClass('fa-spinner fa-spin');
725			$this.closest('#lp-ad-click-inner').find('.lpthisloading').addClass('fa-check');
726			window.location.href=window.location.href
727         },
728         error: function(jqXHR, textStatus, errorThrown) {
729             console.log(errorThrown);
730         }
731     });
732 });

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.