1/*parsed HTML*/ 2$(function(){ 3 $(".maxheight, .maxheight1, .maxheight2, .maxheight3").each(function(){ 4 $(this).contents().wrapAll("<div class='box_inner'></div>"); 5 }) 6}) 7/*add event*/ 8$(window).bind("resize", height_handler).bind("load", height_handler) 9function height_handler(){ 10 11 if($(window).width()> 480){ 12 $(".maxheight").equalHeights() 13 }else{ 14 $(".maxheight").css({'height':'auto'}); 15 } 16 17 18 19 20 if($(window).width()> 380){ 21 $(".maxheight1").equalHeights() 22 }else{ 23 $(".maxheight1").css({'height':'auto'}); 24 } 25 26 if($(window).width()> 360){ 27 $(".maxheight2").equalHeights() 28 }else{ 29 $(".maxheight2").css({'height':'auto'}); 30 } 31 32 if($(window).width()> 480){ 33 $(".maxheight3").equalHeights() 34 }else{ 35 $(".maxheight3").css({'height':'auto'}); 36 } 37 38} 39/*glob function*/ 40(function($){ 41 $.fn.equalHeights=function(minHeight,maxHeight){ 42 tallest=(minHeight)?minHeight:0; 43 this.each(function(){ 44 if($(">.box_inner", this).outerHeight()>tallest){ 45 tallest=$(">.box_inner", this).outerHeight() 46 } 47 }); 48 if((maxHeight)&&tallest>maxHeight) tallest=maxHeight; 49 return this.each(function(){$(this).height(tallest)}) 50 } 51})(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.