1var global = { 2 eventsAttached:false, 3 4 adjustMain: function(){ 5 var data = $('body').data(); 6 if(data.nav == 'fixed') { 7 if($(window).outerWidth() < 768) { 8 $('.main-top').css('margin-top', '45px'); 9 } else { 10 $('.main-top').css('margin-top', $('.header').outerHeight()+'px'); 11 } 12 } 13 }, 14 15 equalHeight: function(sel){ 16 var heights = $(sel).map(function() { 17 return $(this).height(); 18 }).get(); 19 maxHeight = Math.max.apply(null, heights); 20 $(sel).height(maxHeight); 21 }, 22 23 events: function(){ 24 if(!global.eventsAttached) { 25 $(window).resize(global.adjustMain); 26 global.eventsAttached = true; 27 } 28 }, 29 30 init: function(){ 31 global.adjustMain(); 32 global.events(); 33 }, 34 35 setEqualHeights: function(){ 36 global.equalHeight(".single-post"); 37 global.equalHeight(".equal-height"); 38 } 39}; 40$(document).ready(global.init); 41$(window).on('load', global.setEqualHeights)
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.