1/** 2 * WWUCD Tile Module - Javascript file for sizing the WWU tile elements 3 * 4 * @author Pascal Burnus 5 */ 6 7(function($) { 8 9 function ResizeToSameHeight(selector){ 10 11 var element = $(selector); 12 var newHeight = 0; 13 14 for( i=0; i<element.length; i++){ 15 var elementHeight = $(element[i]).height(); 16 17 if(elementHeight>newHeight){ 18 newHeight = elementHeight; 19 } else { 20 newHeight = newHeight; 21 } 22 } 23 24 element.css("height", newHeight); 25 } 26 27 $(document).ready(function(){ 28 ResizeToSameHeight('.main .wwu-tile'); 29 }); 30 31 $(window).resize(function(){ 32 $('.main .wwu-tile').removeAttr("style"); 33 ResizeToSameHeight('.main .wwu-tile'); 34 }); 35})(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.