From: David Seifried Date: Tue, 10 May 2011 17:52:10 +0000 (-0400) Subject: Added more in depth comments explaining for process of the demo thoroughly X-Git-Tag: v0.6~14^2~3^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=fa406e49534461812a9136ca7d8ef50339f3c7d6;p=popcorn-js.git Added more in depth comments explaining for process of the demo thoroughly --- diff --git a/demos/twittervideo/twitterVideo.html b/demos/twittervideo/twitterVideo.html index e7db497..642e62c 100644 --- a/demos/twittervideo/twitterVideo.html +++ b/demos/twittervideo/twitterVideo.html @@ -1,4 +1,14 @@ + Popcorn Twitter Video Demo @@ -11,6 +21,7 @@ var srtBtn = document.getElementById( "srtBtn" ); + // Add an event listener to the start button to know when it is clicked srtBtn.addEventListener( "click", btnClick, false ); }, false ); @@ -22,7 +33,6 @@ // Anytime after the first click, remove the current video and // wipe the current twitter feed if(count != 0){ - // Popcorn.removePlugin(popcorn, twitter); popcorn = ""; document.getElementById('twitterdiv').innerHTML = ""; } @@ -73,6 +83,7 @@ } if(ok){ + // Add twitter widget with associated parameters popcorn = popcorn .twitter({ start: 0, // seconds @@ -87,6 +98,7 @@ +

Twitter Hashtag video demo

Insert a link to a video(youtube,vimeo,.ogv,or.mp4) and supply a hashtag