1(function($) { 2 function update() { 3 $('.html5-banner[data-width][data-height]').each(function() { 4 var w = parseInt($(this).data('width')), scale = ($(this).width() / w); 5 6 $(this).find('iframe').css('transform', 'scale(' + scale + ')'); 7 $(this).find('iframe').css('-webkit-transform', 'scale(' + scale + ')'); 8 }); 9 } 10 11 $(function() { 12 $('.html5-banner[data-width][data-height]').each(function() { 13 var w = parseInt($(this).data('width')), 14 h = parseInt($(this).data('height')); 15 16 $(this).css('padding-bottom', ((h / w) * 100) + '%'); 17 $(this).find('iframe').width(w); 18 $(this).find('iframe').height(h); 19 }); 20 21 update(); 22 23 $(window).on('resize', update); 24 }); 25})(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.