freaktechnik

Better twitchstream.js

Apr 27th, 2014
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                     setTimeout(function() {
  2.             var vidwidth = $("#live_embed_player_flash").width();
  3.             if(vidwidth == 0) {
  4.                 setTimeout(this, 200);
  5.                 return;
  6.             }
  7.             $("#loading").fadeOut(100);
  8.             $('#player').slideDown(400,function() {
  9.                 var setheight = (vidwidth / 16) * 9;
  10.                 $("#live_embed_player_flash").css( {"height" : setheight, 'margin-bottom' : '0'} );
  11.                 $("#live_embed_player_flash").height(setheight);
  12.                 $("#chat_embed").css( "height", setheight );
  13.             });
  14.                     }, 200);
Add Comment
Please, Sign In to add comment