]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#159] added manifest as per ticket #237
authorScottDowne <sdowne@learn.senecac.on.ca>
Mon, 20 Dec 2010 22:02:44 +0000 (17:02 -0500)
committerScottDowne <sdowne@learn.senecac.on.ca>
Mon, 20 Dec 2010 22:02:44 +0000 (17:02 -0500)
plugins/twitter/popcorn.twitter.js

index 1c35bae1b996352eda89049d7d9d4e1b0432a608..6ca7580ad3c09706fd91c3d91afd36a00e6a93df 100644 (file)
    */
   Popcorn.plugin( "twitter" , {
 
+      manifest: {
+        about:{
+          name:    "Popcorn Twitter Plugin",
+          version: "0.1",
+          author:  "Scott Downe",
+          website: "http://scottdowne.wordpress.com/"
+        },
+        options:{
+          start   : {elem:'input', type:'number', label:'In'},
+          end     : {elem:'input', type:'number', label:'Out'},
+          src     : {elem:'input', type:'text',   label:'Source'},
+          target  : {elem:'input', type:'text',   label:'HTML Element id'},
+          height  : {elem:'input', type:'number', label:'Style'},
+          width   : {elem:'input', type:'number', label:'Style'}
+        }
+      },
+
       _setup: function( options ) {
 
         // setup widget div that is unique per track
         document.getElementById( options.target ).appendChild( options.container ); // add the widget's div to the target div
 
         // setup info for the widget
-        var src  = options.src || "",
-            width = options.width || 250,
+        var src     = options.src || "",
+            width   = options.width || 250,
             height  = options.height || 200,
             profile = /^@/.test( src ),
-            hash = /^#/.test( src );
+            hash    = /^#/.test( src );
 
         // create widget
         if ( profile ) {