From: Jon Buckley Date: Tue, 21 Jun 2011 17:40:34 +0000 (-0400) Subject: Merge remote-tracking branch 'ScottDowne/t564' into develop X-Git-Tag: v0.7^2~29 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=39e53d2cd54ab57e9fb8d44c9012c1721643172a;p=popcorn-js.git Merge remote-tracking branch 'ScottDowne/t564' into develop --- 39e53d2cd54ab57e9fb8d44c9012c1721643172a diff --cc plugins/wordriver/popcorn.wordriver.js index e69a973,3388ce3..1e03b59 mode 100755,100644..100755 --- a/plugins/wordriver/popcorn.wordriver.js +++ b/plugins/wordriver/popcorn.wordriver.js @@@ -40,42 -40,11 +40,42 @@@ } // Garbage collect support test span - document.head.removeChild( span ); + document.getElementsByTagName( "head" )[ 0 ].appendChild( span ); + /** + * Word River popcorn plug-in + * Displays a string of text, fading it in and out + * while transitioning across the height of the parent container + * for the duration of the instance (duration = end - start) + * + * @param {Object} options + * + * Example: + var p = Popcorn( '#video' ) + .wordriver({ + start: 5, // When to begin the Word River animation + end: 15, // When to finish the Word River animation + text: 'Hello World', // The text you want to be displayed by Word River + target: 'wordRiverDiv', // The target div to append the text to + color: "blue" // The color of the text. (can be Hex value i.e. #FFFFFF ) + } ) + * + */ + Popcorn.plugin( "wordriver" , { - manifest: {}, + manifest: { + about:{ + name: "Popcorn WordRiver Plugin" + }, + options:{ + start : {elem:'input', type:'text', label:'In'}, + end : {elem:'input', type:'text', label:'Out'}, + target : 'wordriver-container', + text : {elem:'input', type:'text', label:'Text'}, + color : {elem:'input', type:'text', label:'Color'} + } + }, _setup: function( options ) {