davatron5000/FitVids.js — pull request #188 by elephantsRule (2014-08-19 08:13:02+00:00)
Title: Take percentage widths/heights into account

When using percentages as widths or heights, the existing code returns an Integer value through parseInt (100% becomes 100), resulting in an incorrect video aspect ratio. I've added a check for the '%' character in the conditional statements, so that when percentage widths and height are used, the actual height or width of the object on the screen is measured by jQuery (using width() and height() functions).