1var min_w = 300; 2var vid_w_orig; 3var vid_h_orig; 4 5$(function() { 6 7 vid_w_orig = parseInt($('video').attr('width')); 8 vid_h_orig = parseInt($('video').attr('height')); 9 10 $(window).resize(function () { fitVideo(); }); 11 $(window).trigger('resize'); 12 13}); 14 15function fitVideo() { 16 17 $('.video-viewport').width($('.fullsize-video-bg').width()); 18 $('.video-viewport').height($('.fullsize-video-bg').height()); 19 20 var scale_h = $('.fullsize-video-bg').width() / vid_w_orig; 21 var scale_v = $('.fullsize-video-bg').height() / vid_h_orig; 22 var scale = scale_h > scale_v ? scale_h : scale_v; 23 24 if (scale * vid_w_orig < min_w) {scale = min_w / vid_w_orig;}; 25 26 $('video').width(scale * vid_w_orig); 27 $('video').height(scale * vid_h_orig); 28 29 $('.video-viewport').scrollLeft(($('video').width() - $('.fullsize-video-bg').width()) / 2); 30 $('.video-viewport').scrollTop(($('video').height() - $('.fullsize-video-bg').height()) / 2); 31 32};
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.