Skip to content

Commit

Permalink
adjust math to hide border on video player, refs #77
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiomontefuscolo committed Nov 11, 2013
1 parent 2c3823e commit 662f760
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@
<script type="text/javascript" charset="utf-8">
(function(){
function resize_player() {
$('#youtube-player').css('width','100%')
.height($('#youtube-player').width() * 0.5625);
var $p = $('#youtube-player');
$p.css('width','100%');
$p.height(Math.floor($p.width() * 0.5624));
}

function resize_activation_wrapper() {
Expand Down

0 comments on commit 662f760

Please sign in to comment.