1"use strict"; 2 3window.jQuery = window.$ = jQuery; 4 5jQuery(document).ready(function($) { 6 "use strict"; 7 8 evatheme_core_metro_update(); 9 10}); 11 12 13jQuery(window).resize(function() { 14 15 evatheme_core_metro_update(); 16 setTimeout("evatheme_core_metro_update()", 50); 17 18}); 19 20 21jQuery(window).load(function() { 22 23 evatheme_core_metro_update(); 24 25}); 26 27 28function evatheme_core_metro_update() { 29 30 var gallery_metro_tag = jQuery('.gallery_metro'); 31 if (gallery_metro_tag.length) { 32 jQuery('.metro_item').each(function() { 33 var metro_item_w = jQuery(this).width(); 34 35 if (jQuery(this).hasClass('metro_height2')) { 36 var metro_item_h = metro_item_w*2; 37 } else if (jQuery(this).hasClass('metro_width2_height2')) { 38 var metro_item_h = metro_item_w*1; 39 } else if (jQuery(this).hasClass('metro_width2')) { 40 var metro_item_h = metro_item_w/2; 41 } else { 42 var metro_item_h = Math.ceil(metro_item_w*1); 43 } 44 45 jQuery(this).find('.gallery_img_bg').css({'height': metro_item_h + 'px'}); 46 }); 47 } 48}
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.