SHOW:
|
|
- or go back to the newest paste.
| 1 | setTimeout(function() {
| |
| 2 | - | $("#loading").fadeOut(100);
|
| 2 | + | var vidwidth = $("#live_embed_player_flash").width();
|
| 3 | - | $('#player').slideDown(400,function() {
|
| 3 | + | if(vidwidth == 0) {
|
| 4 | - | var vidwidth = $("#live_embed_player_flash").width();
|
| 4 | + | setTimeout(this, 200); |
| 5 | - | var setheight = (vidwidth / 16) * 9; |
| 5 | + | return; |
| 6 | - | $("#live_embed_player_flash").css( {"height" : setheight, 'margin-bottom' : '0'} );
|
| 6 | + | } |
| 7 | - | $("#live_embed_player_flash").height(setheight);
|
| 7 | + | $("#loading").fadeOut(100);
|
| 8 | - | $("#chat_embed").css( "height", setheight );
|
| 8 | + | $('#player').slideDown(400,function() {
|
| 9 | - | }); |
| 9 | + | var setheight = (vidwidth / 16) * 9; |
| 10 | - | }, 200); |
| 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); |