1(function ($, Drupal) { 2 fitArticleImage() 3 4 $(window).resize(function(){ 5 fitArticleImage() 6 }) 7 8 function fitArticleImage() { 9 $('.page-node-type-article .header img, .page-node-type-rh-article .header img').each(function(){ 10 container = $(this).parents('.header') 11 bodyWidth = $('body').width() 12 if(bodyWidth > 768) { 13 margin = (bodyWidth - container.width()) / 2 14 w = container.width() - $('.metas', container).width() + margin - 40; 15 } else { 16 w = bodyWidth 17 } 18 $(this).width(w) 19 }); 20 } 21})(jQuery, Drupal);
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.