1//console.log('Script: Equal Height'); 2function getGroup(){ 3 var G = ''; 4 var GH = ''; 5 $('.equal-height').each(function(){ 6 G = $(this).data('group'); 7 GH = $(this).height(); 8 compareHeight(G); 9 }); 10 11} 12function compareHeight(G){ 13 var NH = 0; //new height 14 var OH = 0; //old height 15 $('.equal-height[data-group=\'' + G + '\']').each(function(){ 16 $(this).css('height',''); 17 OH = $(this).height(); 18 if(OH>NH){ 19 NH = OH; 20 } 21 }); 22 setHeight(NH, G); 23} 24function setHeight(NH, G){ 25 var WW = $(window).width(); 26 DT = $('.equal-height[data-group=\'' + G + '\']').data('to'); 27 if(DT){ 28 if(WW>DT){ 29 $('.equal-height[data-group=\'' + G + '\']').css({'min-height':NH}); 30 } else { 31 $('.equal-height[data-group=\'' + G + '\']').css({'min-height':'auto'}); 32 } 33 } else { 34 $('.equal-height[data-group=\'' + G + '\']').css({'min-height':NH}); 35 } 36 if ($('.equal-height[data-group=\'' + G + '\']').hasClass('vcenter')){ 37 vcenter(); 38 } 39} 40 41$(window).load(function(){ 42 //when the page loads 43 getGroup(); 44 //after CKEditor has had time to do its thing. 45 setTimeout(function(){getGroup();console.log('set timeout');},500); 46}); 47$(window).on("click",function(){ 48 //On any page click - to help with slideUp/slideDown issues 49 setTimeout(function(){getGroup();console.log('set timeout');},500); 50}); 51$(window).resize(function(){ 52 //when someone resizes their browser 53 getGroup(); 54}); 55//console.log('----go'); 56
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.