1function foun10Gpredictive() { 2 "use strict"; 3 4 return { 5 defaults: { 6 logEventAjaxEndpoint: '', 7 referrer: '', 8 path: '' 9 }, 10 options: {}, 11 init: function(options) { 12 var self = this; 13 self.options = $.extend({}, self.defaults, options); 14 self.options.logEventAjaxEndpoint = self.options.logEventAjaxEndpoint.replace(/&/g, '&'); 15 }, 16 logEvent: function(type, productId) { 17 var self = this; 18 19 $.ajax({ 20 url: self.options.logEventAjaxEndpoint, 21 data: { 22 referrer: self.options.referrer, 23 path: this.options.path, 24 type: type, 25 productId: productId 26 }, 27 success: function (data) { 28 var response = JSON.parse(data); 29 30 if (response.success) { 31 32 } 33 } 34 }); 35 } 36 }; 37}
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.