1$(document).ready(function() { 2 $('.boost-ajax').each(function(index, element) { 3 4 var route = $(element).attr('data-route'); 5 var parameters = 'boost_route=' + route; 6 7 var position = $(element).attr('data-position'); 8 if (typeof(position) != 'undefined') { 9 parameters += '&boost_position=' + position; 10 } 11 12 var sort_order = $(element).attr('data-sort_order'); 13 if (typeof(sort_order) != 'undefined') { 14 parameters += '&boost_sort_order=' + sort_order; 15 } 16 17 var callback = $(element).attr('data-callback'); 18 19 parameters += '&boost_url=' + encodeURIComponent(window.location.href); 20 21 $.ajax({ 22 url: 'index.php?route=module/boost/ajax', 23 type: 'get', 24 data: parameters, 25 dataType: 'html', 26 success: function(html) { 27 $(element).replaceWith(html); 28 29 if (typeof(callback) != 'undefined' && typeof(window[callback]) === 'function') { 30 window[callback](); 31 } 32 } 33 }); 34 }); 35});
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.