Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed twitter demo [#811]
  • Loading branch information
Christopher De Cairos committed Nov 1, 2011
2 parents dba41e6 + b68dfde commit 200e06d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions demos/twittervideo/twitterVideo.html
Expand Up @@ -43,11 +43,11 @@
// and displaying the video accordingly, displays error message if the
// video type is incompatable
if( document.getElementById( 'vidUrl' ).value.search( "youtube" ) != -1 ){
popcorn = Popcorn( Popcorn.youtube( 'video', document.getElementById( 'vidUrl' ).value ) );
popcorn = Popcorn.youtube( '#video', document.getElementById( 'vidUrl' ).value );
ok = true;
}
else if( document.getElementById( 'vidUrl' ).value.search( "vimeo" ) != -1 ){
popcorn = Popcorn( Popcorn.vimeo( 'video', document.getElementById( 'vidUrl' ).value ) );
popcorn = Popcorn.vimeo( '#video', document.getElementById( 'vidUrl' ).value );
ok = true;
}
else if( document.getElementById( 'vidUrl' ).value.search( "ogv" ) != -1 ){
Expand Down Expand Up @@ -84,7 +84,7 @@

if(ok){
// Add twitter widget with associated parameters
popcorn = popcorn
popcorn
.twitter({
start: 0, // seconds
end: 45, // seconds
Expand All @@ -107,7 +107,7 @@ <h3>Twitter Hashtag video demo</h3>
<p>Twitter Hashtag:</p>
<input id="hashtag" size="20" value="#seneca"/>
<button class="start" id="srtBtn">Play</button><br />
<div id="video" width="360" height="300" ></div><br />
<div id="video" style="width: 360px; height: 300px;" ></div><br />
<div id="twitterdiv" style="position:relative;float:left;width:400px;height:600px"></div>
</div>
</body>
Expand Down

0 comments on commit 200e06d

Please sign in to comment.