PageSourceSearch

https://www.zeste-citron.com/wp-content/plugins/awesome-recipe/assets/scripts/main.js?ver=1.1.0

js zeste-citron.com collected 2026-10-07 10:44:39 UTC 1,677 bytes, 60 lines download raw bytes

1jQuery(function($){
2//  Rating
3	$("#arpcpt_recipe_rating").bind( "rated", function() {
4
5		$(this).rateit( "readonly", true );
6
7		var form = {
8			
9			action: "arpcpt_awesome_recipe_rating", // In plugin main file we have to call it, {add_action( 'wp_ajax_awesome_recipe_rating', 'awesome_recipe_rating' );}
10			rid: $(this).data('rid'),
11			rating: $(this).rateit( 'value' )
12
13		};
14
15		$.post( arpcpt_awesome_recipe_obj.ajax_url, form, function(data){
16
17
18		});
19
20	});
21
22});
23
24
25/*
26 * Replace all SVG images with inline SVG
27 */
28jQuery('img.svg').each(function(){
29    var $img = jQuery(this);
30    var imgID = $img.attr('id');
31    var imgClass = $img.attr('class');
32    var imgURL = $img.attr('src');
33
34    jQuery.get(imgURL, function(data) {
35        // Get the SVG tag, ignore the rest
36        var $svg = jQuery(data).find('svg');
37
38        // Add replaced image's ID to the new SVG
39        if(typeof imgID !== 'undefined') {
40            $svg = $svg.attr('id', imgID);
41        }
42        // Add replaced image's classes to the new SVG
43        if(typeof imgClass !== 'undefined') {
44            $svg = $svg.attr('class', imgClass+' replaced-svg');
45        }
46
47        // Remove any invalid XML tags as per http://validator.w3.org
48        $svg = $svg.removeAttr('xmlns:a');
49
50        // Check if the viewport is set, if the viewport is not set the SVG wont't scale.
51        if(!$svg.attr('viewBox') && $svg.attr('height') && $svg.attr('width')) {
52            $svg.attr('viewBox', '0 0 ' + $svg.attr('height') + ' ' + $svg.attr('width'))
53        }
54
55        // Replace image with new SVG
56        $img.replaceWith($svg);
57
58    }, 'xml');
59
60});

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.