<!DOCTYPE html>
+<!---
+ To be able to use the demo effectively, the user must create the following:
+ 1. Two input fields/a method to select data of some sort (drop down list, check box, ect)
+ for the user to be able to select a video and a hashtag that will be used in the demo
+ 2. A method of some sort (button, listeners, ect) for the user to submit the data that they
+ entered in the input fields in step 1.
+ 3. Once the above have been added, a listener will listen for a button click on
+ the submit button, and will call a function to create a popcorn object
+ and begin running the twitter plugin and begin the video
+--->
<html>
<head>
<title>Popcorn Twitter Video Demo</title>
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 );
// 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 = "";
}
}
if(ok){
+ // Add twitter widget with associated parameters
popcorn = popcorn
.twitter({
start: 0, // seconds
</script>
</head>
<body>
+ <!-- Setup html divs and other tags, as well as input fields and buttons -->
<h3>Twitter Hashtag video demo</h3>
<p>Insert a link to a video(youtube,vimeo,.ogv,or.mp4) and supply a hashtag</p>
<div>