From: ScottDowne Date: Mon, 20 Dec 2010 22:02:44 +0000 (-0500) Subject: [#159] added manifest as per ticket #237 X-Git-Tag: v0.2~22^2~3^2~8 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=d952bc465a2da1967fa839eba832763a8828be32;p=popcorn-js.git [#159] added manifest as per ticket #237 --- diff --git a/plugins/twitter/popcorn.twitter.js b/plugins/twitter/popcorn.twitter.js index 1c35bae..6ca7580 100644 --- a/plugins/twitter/popcorn.twitter.js +++ b/plugins/twitter/popcorn.twitter.js @@ -28,6 +28,23 @@ */ 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 @@ -37,11 +54,11 @@ 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 ) {