1(function($){ 2'use strict'; 3$(function(){ 4$(window).resize(function(){ 5resize(); 6}); 7image_adjust(); 8$(window).scroll(function(){ 9image_adjust(); 10}); 11}); 12function image_adjust(){ 13$('.catch-instagram-feed-gallery-widget-wrapper .item a').each(function(){ 14var img=$(this).find('img.cifgw'); 15var src=$(img).attr('src'); 16$(img).css('display', 'none'); 17$(this).css('background-image', 'url('+src+')'); 18$(this).css('background-size', 'cover'); 19$(this).css('background-position', 'center'); 20}); 21resize(); 22} 23function resize(){ 24$('.catch-instagram-feed-gallery-widget-wrapper .item a').each(function(){ 25var width=$(this).parent('li').width(); 26var rect=$(this).parent('li')[0].getBoundingClientRect(); 27if(rect.width){ 28width=rect.width; 29} 30$(this).css('height',width); 31$(this).css('width',width); 32}); 33}})(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.