1(function($) { 2 Drupal.behaviors.mdaMultimedia = { 3 attach: function (context, settings) { 4 5 resizeFrame(); 6 7 window.onresize = function(){ 8 resizeFrame(); 9 } 10 11 function resizeFrame() { 12 // Original ifram width and height 13 var frame_width = $('#block-views-multimedia-block-last-video iframe').width(); 14 var frame_height = $('#block-views-multimedia-block-last-video iframe').height(); 15 16 // Containing block width 17 var block_width = $('#block-views-multimedia-block-last-video').width(); 18 aspectRatio = block_width / frame_width; 19 20 $('#block-views-multimedia-block-last-video iframe').width(block_width); 21 $('#block-views-multimedia-block-last-video iframe').height(Math.round(frame_height * aspectRatio)); 22 } 23 } 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.