HEX
Server: LiteSpeed
System: Linux dal1.hostclusters.com 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64
User: vslw (1496)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /home/vslw/public_html/wp-content/themes/soledad/js/reviews.js
(function($){
	$(document ).ready(function(){
		var $rates = $('#add_comment_rating_wrap'),
			path = $rates.data('assets_path' ),
			default_rating = 4;

		if ( typeof $('#add_post_rating').attr('data-pccm_rating') !== 'undefined' ) {
			default_rating = $('#add_post_rating').attr('data-pccm_rating');
		}

		$rates.raty({
			half: false,
			target : '#add_post_rating',
			hints: '',
			path: path,
			targetKeep : true,
			//targetType : 'score',
			targetType : 'hint',
			//precision  : true,
			score: default_rating,
			scoreName: 'pccm_rating',
			click: function(rating, evt) {
				$('#add_post_rating' ).val( '' + rating );
				$('#add_post_rating option[value="' + rating + '"]' ).attr( 'selected', 'selected' );
			},
			starType : 'i'
		});

		$('.review_rate' ).raty({
			readOnly: true,
			target : this,
			half: false,
			starType : 'i',
			score: function() {
				return $(this).attr('data-pccm_rating');
			},
			scoreName: 'pccm_rating'
		});
	});
})(jQuery);