1/** 2 * Plugin Name: FEEDZY RSS Feeds 3 * Plugin URI: http://themeisle.com/plugins/feedzy-rss-feeds/ 4 * Author: Themeisle 5 * 6 * @package feedzy-rss-feeds 7 */ 8/* global feedzy */ 9/* jshint unused:false */ 10(function($) { 11 12 // load all attributes into the ajax call. 13 $('.feedzy-lazy:not(.loading)').each(function() { 14 var $feedzy_block = $(this); 15 var $attributes = {}; 16 $.each(this.attributes, function() { 17 if(this.specified && this.name.includes('data-')) { 18 $attributes[this.name.replace('data-', '')] = this.value; 19 } 20 }); 21 setTimeout( function(){ 22 $feedzy_block.addClass('loading'); 23 $.ajax({ 24 url: feedzy.url, 25 method: 'POST', 26 data: { 27 action: 'feedzy', 28 _action: 'lazy', 29 args: $attributes, 30 nonce: feedzy.nonce 31 }, 32 beforeSend: function (xhr) { 33 xhr.setRequestHeader('X-WP-Nonce', feedzy.rest_nonce); 34 }, 35 success: function(data){ 36 if(data.success){ 37 $feedzy_block.empty().append(data.data.content); 38 } 39 }, 40 complete: function(){ 41 $feedzy_block.removeClass('loading'); 42 } 43 }); 44 }, 1000 ); 45 }); 46})(jQuery, feedzy);
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.