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 22 if ( 'true' === $attributes.has_valid_cache ) { 23 return; 24 } 25 delete $attributes.has_valid_cache; 26 setTimeout( function(){ 27 $feedzy_block.addClass('loading'); 28 $.ajax({ 29 url: feedzy.url, 30 method: 'POST', 31 data: { 32 action: 'feedzy', 33 _action: 'lazy', 34 args: $attributes, 35 nonce: feedzy.nonce 36 }, 37 beforeSend: function (xhr) { 38 xhr.setRequestHeader('X-WP-Nonce', feedzy.rest_nonce); 39 }, 40 success: function(data){ 41 if(data.success){ 42 $feedzy_block.empty().append(data.data.content); 43 } 44 }, 45 complete: function(){ 46 $feedzy_block.removeClass('loading'); 47 } 48 }); 49 }, 1000 ); 50 }); 51})(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.