From: Christopher De Cairos Date: Tue, 7 Jun 2011 15:42:12 +0000 (-0400) Subject: fixed documentation errors X-Git-Tag: v0.7^2~43^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=9db72e4f84aa5d8d9175dbea2d6e311c501b7397;p=popcorn-js.git fixed documentation errors --- diff --git a/plugins/flickr/popcorn.flickr.js b/plugins/flickr/popcorn.flickr.js index 1009fea..405bb32 100644 --- a/plugins/flickr/popcorn.flickr.js +++ b/plugins/flickr/popcorn.flickr.js @@ -26,7 +26,7 @@ * * Example: var p = Popcorn('#video') - .footnote({ + .flickr({ start: 5, // seconds, mandatory end: 15, // seconds, mandatory userid: '35034346917@N01', // optional diff --git a/plugins/googlenews/popcorn.googlenews.js b/plugins/googlenews/popcorn.googlenews.js index e9b8876..fb808cf 100644 --- a/plugins/googlenews/popcorn.googlenews.js +++ b/plugins/googlenews/popcorn.googlenews.js @@ -33,7 +33,7 @@ * * Example: var p = Popcorn('#video') - .footnote({ + .googlenews({ start: 5, // seconds, mandatory end: 15, // seconds, mandatory topic: 'oil spill', // optional diff --git a/plugins/lowerthird/popcorn.lowerthird.js b/plugins/lowerthird/popcorn.lowerthird.js index 7b28a0e..e15418e 100644 --- a/plugins/lowerthird/popcorn.lowerthird.js +++ b/plugins/lowerthird/popcorn.lowerthird.js @@ -19,7 +19,7 @@ * * Example: var p = Popcorn('#video') - .footnote({ + .lowerthird({ start: 5, // seconds, mandatory end: 15, // seconds, mandatory salutation: 'Mr', // optional diff --git a/plugins/subtitle/popcorn.subtitle.js b/plugins/subtitle/popcorn.subtitle.js index f56d986..10741d4 100644 --- a/plugins/subtitle/popcorn.subtitle.js +++ b/plugins/subtitle/popcorn.subtitle.js @@ -84,7 +84,7 @@ * * Example: var p = Popcorn('#video') - .footnote({ + .subtitle({ start: 5, // seconds, mandatory end: 15, // seconds, mandatory text: 'Hellow world', // optional diff --git a/plugins/wordriver/popcorn.wordriver.js b/plugins/wordriver/popcorn.wordriver.js index 2fe6359..aec6cea 100644 --- a/plugins/wordriver/popcorn.wordriver.js +++ b/plugins/wordriver/popcorn.wordriver.js @@ -42,6 +42,26 @@ // Garbage collect support test span document.head.removeChild( 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: {},