From 45af4050d537b5d7161c1bd810cc711e77846ee1 Mon Sep 17 00:00:00 2001 From: Anna Sobiepanek Date: Fri, 25 Jun 2010 13:05:45 -0400 Subject: [PATCH] added footnotes [#54 state:peer-review-requested] --- index.html | 3 ++- popcorn.js | 22 +++++++++++++++++++++- xml/webMadeMovies.xml | 3 +++ 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 7c2167e..74a8e9d 100644 --- a/index.html +++ b/index.html @@ -36,7 +36,8 @@
-

+

+

In this video:

diff --git a/popcorn.js b/popcorn.js index 282b1c9..aea30b5 100644 --- a/popcorn.js +++ b/popcorn.js @@ -159,7 +159,22 @@ 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