Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 329 Bytes

File metadata and controls

6 lines (4 loc) · 329 Bytes

MaxVideoHeightViewportMatcher

This script will set the max height of a video to the available vertical space within the viewport. So the Video AND the controls are visible at every screen ratio (portrait & landscape mode) for responsive layouts.

Live demo: http://jsfiddle.net/doptrois/PEsBL/