Skip to content

Instantly share code, notes, and snippets.

@almet
Created April 29, 2011 11:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save almet/948186 to your computer and use it in GitHub Desktop.
Save almet/948186 to your computer and use it in GitHub Desktop.
// default ports
const data = require("self").data;
const panels = require("panel");
const widgets = require("widget");
exports.main = function(options, callbacks){
// manage widget
var widget = widgets.Widget({
id: "main",
label: 'Suggest!',
contentURL: data.url('img/icon_active.png'),
panel: panels.Panel({
id: "options",
width: 400,
height: 400,
contentUrl: data.url("templates/options.html")
})
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment