From: Anna Sobiepanek Date: Fri, 25 Jun 2010 17:05:45 +0000 (-0400) Subject: added footnotes [#54 state:peer-review-requested] X-Git-Tag: v0.1~75^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=45af4050d537b5d7161c1bd810cc711e77846ee1;p=popcorn-js.git added footnotes [#54 state:peer-review-requested] --- 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