1function BlockService($contentArea, blockClass) { 2 3 var self = this; 4 var prevBlock = null; 5 var calculatedValue = 0; 6 var index = 0; 7 8 $("." + blockClass).each(function (e) { 9 10 index++; 11 12 if ($(this).prev().is(prevBlock) || index == 1) 13 { 14 calculatedValue = (index - 1) % 3; 15 16 if (calculatedValue == 0 && index != 1) 17 { 18 $(this).addClass("clear-left"); 19 } 20 } 21 else { 22 index = 0; 23 } 24 prevBlock = $(this); 25 }); 26}
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.