]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Merge remote-tracking branch 'ScottDowne/t564' into develop
authorJon Buckley <jon@jbuckley.ca>
Tue, 21 Jun 2011 17:40:34 +0000 (13:40 -0400)
committerJon Buckley <jon@jbuckley.ca>
Tue, 21 Jun 2011 17:40:34 +0000 (13:40 -0400)
1  2 
plugins/wordriver/popcorn.wordriver.js

index e69a973cd07f782b94616c60f72d6f4d1bfeb52f,3388ce3876b676ade7980aaeae4244cb9733bc32..1e03b598356d4cfb51d474331f4056fe8fc010e5
mode 100755,100644..100755
    }
  
    // 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 ) {