1(function( $ ) { 2 'use strict'; 3 4 /** 5 * All of the code for your public-facing JavaScript source 6 * should reside in this file. 7 */ 8 9 $(function(){ 10 11 $( window ).resize(function() { 12 resize(); 13 }); 14 image_adjust(); 15 16 $( window ).scroll(function() { 17 image_adjust(); 18 }); 19 }); 20 function image_adjust(){ 21 $('.catch-instagram-feed-gallery-widget-wrapper .item a').each( 22 function(){ 23 var img = $(this).find('img.cifgw'); 24 var src = $(img).attr('src'); 25 $(img).css('display', 'none'); 26 $(this).css('background-image', 'url('+src+')'); 27 $(this).css('background-size', 'cover'); 28 $(this).css('background-position', 'center'); 29 }); 30 resize(); 31 } 32 33 function resize(){ 34 $('.catch-instagram-feed-gallery-widget-wrapper .item a').each( 35 function(){ 36 var width = $(this).parent('li').width(); 37 var rect = $(this).parent('li')[0].getBoundingClientRect(); 38 if(rect.width){ 39 width = rect.width; 40 } 41 $(this).css('height',width); 42 $(this).css('width',width); 43 }); 44 } 45})( 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.