1(function ($) { 2 3 SR_ROS_SEARCH = { 4 5 init: function () { 6 7 var root = SR_ROS.getRootItem(); 8 9 if (root.find('.js_product-list').length) { 10 this.handleProductList(); 11 } 12 }, 13 14 handleProductList: function () { 15 var viewportSize = SR_ROS_BREAKPOINTS.getBreakpoint(); 16 17 if (viewportSize !== 'xs' && viewportSize !== 's') { 18 SR_ROS.equalBoxes('.js_product-list', '.js_product-item'); 19 } else { 20 $('.js_product-item', '.js_product-list').height('auto'); 21 } 22 } 23 }; 24 25 SR_ROS_SEARCH.init(); 26 27 $(window).on('load', function (event) { 28 SR_ROS_SEARCH.init(event.target); 29 }); 30 31 /** 32 * On resize recalculate block/box sizes 33 */ 34 35 $(window).smartresize( 36 function () { 37 SR_ROS_SEARCH.init(); 38 } 39 ); 40 41})(jQuery);
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.