1(function($){ 2 $(document ).ready(function(){ 3 var $rates = $('#add_comment_rating_wrap'), 4 path = $rates.data('assets_path' ), 5 default_rating = 4; 6 7 if ( typeof $('#add_post_rating').attr('data-pixrating') !== 'undefined' ) { 8 default_rating = $('#add_post_rating').attr('data-pixrating'); 9 } 10 11 $rates.raty({ 12 half: false, 13 target : '#add_post_rating', 14 hints: pixreviews.hints, 15 path: path, 16 targetKeep : true, 17 //targetType : 'score', 18 targetType : 'hint', 19 //precision : true, 20 score: default_rating, 21 scoreName: 'pixrating', 22 click: function(rating, evt) { 23 $('#add_post_rating' ).val( '' + rating ); 24 $('#add_post_rating option[value="' + rating + '"]' ).attr( 'selected', 'selected' ); 25 }, 26 starType : 'i' 27 }); 28 29 $('.review_rate' ).raty({ 30 readOnly: true, 31 target : this, 32 half: false, 33 starType : 'i', 34 score: function() { 35 return $(this).attr('data-pixrating'); 36 }, 37 scoreName: 'pixrating' 38 }); 39 }); 40})(jQuery);
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.