Skip to content

Instantly share code, notes, and snippets.

@sovanesyan
Created May 24, 2009 13:30
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 sovanesyan/117096 to your computer and use it in GitHub Desktop.
Save sovanesyan/117096 to your computer and use it in GitHub Desktop.
/* This is a template command. */
CmdUtils.CreateCommand({
name: "kino",
/*icon: "http://example.com/example.png",
homepage: "http://example.com/",
author: {name: "Your Name", email: "you@example.com"},
license: "GPL",
description: "A short description of your command",
help: "How to use your command",
*/
takes: {"input": /.*/},
preview: function(pblock, input) {
pblock.innerHTML += "Start";
jQuery.get("http://www.start.bg/lenta/cinema.php?town=18&cin=0&movie=0&genre=0&day=1&hour=07",
function(data) {
pblock.innerHTML += jQuery('#container', data);
}
)
pblock.innerHTML += "Stop";
pblock.innerHTML += "Your input is <b>" + input.text + "</b>.";
},
execute: function(input) {
displayMessage("You selected: " + input.text);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment