<body>
<div id="container">
<video src="http://a52.video2.blip.tv/7320003802153/Etherworks-WebMadeMovies3BuildingABetterInternet799.ogg" data-timeline-sources="xml/webMadeMovies.xml" controls></video>
- <div id="sub"></div><br />
+ <div id="footnotediv"></div><br />
+ <div id="sub"></div><br />
<div id="tagthisvideo">In this video:<span id="inthisvideo"></span></div><br />
<div id="map"></div>
</div>
MapCommand.map.setZoom(0);
};
};
-
+ var FootnoteCommand = function(name, params, text) {
+ VideoCommand.call(this, name, params, text);
+ this.onIn = function() {
+ //if the user specifies a target div for this in the xml use it
+ //otherwise make a new div
+ if( this.params.target ) {
+ document.getElementById( this.params.target ).innerHTML = this.text;
+ } else {
+ //this will be done later in ticket #46 (support default div)
+ //for this case i would think get the parent div of the <video> and append a new div to it
+ }
+ };
+ this.onOut = function() {
+ document.getElementById("footnote").innerHTML = "";
+ };
+ };
var TwitterCommand = function(name, params, text) {}; // http://twitter.com/celinecelines
// Wrapper for accessing commands by name
create: function(name, params, text) {
return new MapCommand(name, params, text);
}
+ },
+ footnote: {
+ create: function(name, params, text) {
+ return new FootnoteCommand(name, params, text);
+ }
}
};
<subtitle in="00:15:00" out="00:17:00">My name is Mona Kasra</subtitle>
<subtitle in="00:17:00" out="00:19:00">and I'm building a better internet</subtitle>
</subtitles>
+ <footnotes>
+ <footnote in="00:00:00" out="00:14:00" target="footnotediv"> This video made exclusively for drumbeat.org </footnote>
+ </footnotes>
<inThisVideo>
<tagThisVideo in="00:03:00" out="00:14:00">Celine Celine</tagThisVideo>
<tagThisVideo in="00:13:00" out="00:16:00">Bryan</tagThisVideo>