1function setColumnConformEipHandler(classNameArray){ 2 if(!!!window.columnConformEipHandlerFlag){ 3 window.columnConformEipHandlerFlag = true; 4 window.columnConformSavedArray = classNameArray.slice(); 5 6 if (typeof uAdmin !== 'undefined'){ 7 uAdmin.eip.bind('Enable', function () { 8 resetColumnConform(window.columnConformSavedArray.slice()); 9 columnConform(window.columnConformSavedArray.slice()); 10 }); 11 12 uAdmin.eip.bind('Disable', function () { 13 resetColumnConform(window.columnConformSavedArray.slice()); 14 columnConform(window.columnConformSavedArray.slice()); 15 }); 16 } 17 } 18} 19 20function resetColumnConform(classNameArray){ 21 $(classNameArray).each(function(i,className){ 22 $('.' + className).each(function() { 23 $(this).height('auto'); 24 }); 25 }); 26} 27 28function columnConform(classNameArray) { 29 setColumnConformEipHandler(classNameArray); 30 var currentTallest = 0, 31 currentRowStart = 0, 32 rowDivs = new Array(); 33 34 var className = classNameArray.shift(); 35 if(!className) return false; 36 // find the tallest DIV in the row, and set the heights of all of the DIVs to match it. 37 $('.' + className).each(function() { 38 // "caching" 39 var $el = $(this); 40 41 var topPosition = $el.position().top; 42 43 if (currentRowStart != topPosition) { 44 45 // we just came to a new row. Set all the heights on the completed row 46 for(currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) { 47 var element = rowDivs[currentDiv]; 48 element.height(currentTallest); 49 } 50 51 // set the variables for the new row 52 rowDivs.length = 0; // empty the array 53 topPosition = $el.position().top; 54 currentRowStart = topPosition; 55 currentTallest = $el.height(); 56 rowDivs.push($el); 57 58 } else { 59 // another div on the current row. Add it to the list and check if it's taller 60 rowDivs.push($el); 61 currentTallest = (currentTallest < $el.height()) ? ($el.height()) : (currentTallest); 62 } 63 }); 64 65 // do the last row 66 for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) { 67 var element = rowDivs[currentDiv]; 68 element.height(currentTallest); 69 } 70 71 columnConform(classNameArray); 72 73}
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.