From: Daniel Hodgin Date: Fri, 25 Jun 2010 18:37:05 +0000 (-0400) Subject: merged in footnote X-Git-Tag: v0.1~75 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=1066cb68eaa136bd6dc3ada945cff3a5d21ff1cf;p=popcorn-js.git merged in footnote --- 1066cb68eaa136bd6dc3ada945cff3a5d21ff1cf diff --cc index.html index 6eef5a3,74a8e9d..82b718b --- a/index.html +++ b/index.html @@@ -38,15 -36,8 +38,16 @@@
+ +

+

-

In this video:

diff --cc popcorn.js index ce9032a,aea30b5..3794af8 --- a/popcorn.js +++ b/popcorn.js @@@ -203,13 -159,24 +203,34 @@@ MapCommand.map.setZoom(0); }; }; + + //////////////////////////////////////////////////////////////////////////// + // Twitter Command + //////////////////////////////////////////////////////////////////////////// + + var TwitterCommand = function(name, params, text, videoManager) {}; // http://twitter.com/celinecelines + ++ //////////////////////////////////////////////////////////////////////////// ++ // Footnote Command ++ //////////////////////////////////////////////////////////////////////////// ++ + 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