PageSourceSearch

https://activepestcontrol.com/wp-content/plugins/a-city-ranked-sui…/review/js/review-handler.js?ver=7.1.3

js activepestcontrol.com collected 2026-10-07 19:25:37 UTC 1,756 bytes, 61 lines download raw bytes

1jQuery(document).ready(function($) {
2
3
4 jQuery('#ratingsForm').submit(ajaxSubmit);
5
6	//jQuery( '#saveForm' ).on('click', function() {
7		function ajaxSubmit() {
8
9		var review_form = jQuery(this).serializeArray();
10
11    jQuery.ajax({
12      type: 'post',
13      url: crs_reviews.ajaxurl,
14      dataType: 'json',
15      data: {
16				action: 'crs_review_post',
17				review_form: review_form
18			 },
19      success: function(response) {
20
21				var dadata = JSON.stringify( response	);
22
23				var feedback_message = 'Thank you for your feedback. Your review will be posted shortly.';
24				//feedback_message += '<p>We appreciate your review';
25				var the_review_form = jQuery('.review-form').contents();
26
27	/*			the_review_form.fadeOut( 'slow' , function(e) {
28					var da_review_form = jQuery('.review-form');
29					da_review_form.empty();
30 				}); */
31
32				alert('Thank you for your feedback. Your review will be posted shortly.');
33				jQuery('input[type="text"], textarea, input[type="email"]').val('');
34				jQuery('input[type="radio"]').prop('checked', false);
35				return false;
36      },
37			error: function(thrownError) {
38				console.log('ajax call error running');
39				console.log(thrownError);
40
41			}
42     });
43    return false;
44	};
45	//});
46	jQuery('#review-toggle').on('click', function(){
47		//jQuery('#ratingsForm').toggleClass('cr-hidden');
48		if( jQuery('#ratingsForm').hasClass('cr-hidden') ) {
49			jQuery('#ratingsForm').fadeIn(1000, function() {
50				jQuery('#ratingsForm').removeClass('cr-hidden');
51				jQuery('#review-toggle').html('Cancel Review');
52			});
53		} else {
54			jQuery('#ratingsForm').fadeOut(1000, function() {
55				jQuery('#ratingsForm').addClass('cr-hidden');
56				jQuery('#review-toggle').html('Create Your Own Review');
57			});
58		}
59		  return false;
60	});
61});

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.