Created
October 17, 2013 14:40
-
-
Save alekskorovin/7026158 to your computer and use it in GitHub Desktop.
Calculation of Video container with standard proportions. jQuery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var videoWidth = containerOfVideo.width(), | |
videoHeight = Math.round(videoWidth * 0.5625); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment