PageSourceSearch

https://www.ampelokipi-menemeni.gr/wp-content/plugins/cm-route-manager/asset/js/route-rating.js

js ampelokipi-menemeni.gr collected 2026-10-02 03:02:56 UTC 984 bytes, 33 lines download raw bytes

1jQuery(function($) {
2	
3	$('.cmmrm-rating li').click(function() {
4		
5		var obj = $(this);
6		var container = obj.parents('ul').first();
7		var wrapper = container.parents('.cmmrm-route-rating').first();
8		
9		if (container.attr('data-can-rate') == '0') return;
10		
11		var routeId = obj.parents('.cmmrm-route-single').data('routeId');
12		if (!routeId) routeId = obj.parents('.cmmrm-route-snippet').data('routeId');
13		
14		$.post(CMMRM_Route_Rating.url, {
15			action: 'cmmrm_route_rating',
16			nonce: CMMRM_Route_Rating.nonce,
17			routeId: routeId,
18			rate: obj.data('rate')
19		}, function(response) {
20			console.log(response);
21			if (response.success == '1') {
22				container.attr('data-rating', Math.round(response.rate));
23				container.attr('data-can-rate', 0);
24				var number = wrapper.find('.cmmrm-votes-number');
25				console.log(number);
26				var num = parseInt(number.text().replace(/[^0-9]/g, '')) + 1;
27				number.text('(' + num + ')');
28			}
29		});
30		
31	});
32	
33});

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.