State Fair Records var sixteenNine = function(){
$( '.video-container' ).each( function() {
var width = $(this).width();
$(this).css('height',width * 0.5625 + 'px')
var height = $(this).height();
// print out values
$(this).height(height);
$(this).width(width);
})
$( '.video-container .et_pb_video_box iframe' ).each( function() {
var width = $(this).width();
$(this).css('height',width * 0.5625 + 'px')
var height = $(this).height();
// print out values
$(this).height(height);
$(this).width(width);
})
};
// on page load
jQuery(document).ready(sixteenNine);
// on window resize
jQuery(document).resize(sixteenNine);