1function Plugin_Reviews() { 2 jQuery(document).ready(function($){ 3 $('.reviews-new').on('click', '.js-review-feedback', function(){ 4 $(this).replaceWith('<span><object type="image/svg+xml" data="'+assets_url+'/images/check-circle.svg"></object> '+xxlpix_app_plugin_reviews.translate['success']+'</span>'); 5 }); 6 7 $('.reviews-new').on('click', '.js-load-more', function(){ 8 var parent = $(this).parents('.reviews-new'); 9 jQuery.ajax({ 10 type: 'POST', 11 url: functions_url+'?func=renderReviews', 12 //dataType: 'json', 13 data: {params: xxlpix_app_plugin_reviews.constants}, 14 success: function(data) { 15 data = jQuery.parseJSON(data); 16 parent.children('.wrap').append(data.result); 17 xxlpix_app_plugin_reviews.constants.offset = (xxlpix_app_plugin_reviews.constants['offset'] + xxlpix_app_plugin_reviews.constants['limit']); 18 } 19 }); 20 }); 21 }); 22} 23var xxlpix_app_plugin_reviews = new Plugin_Reviews();
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.