Skip to content

Instantly share code, notes, and snippets.

@kavu
Forked from skammer/gist:144565
Created July 10, 2009 22:26
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 kavu/144867 to your computer and use it in GitHub Desktop.
Save kavu/144867 to your computer and use it in GitHub Desktop.
CmdUtils.CreateCommand({
name: "flip",
execute: function(){
var doc = CmdUtils.getDocument();
jQuery(doc.body).css("-moz-transform", "rotate(180deg)");
}
});
CmdUtils.CreateCommand({
name: "unflip",
execute: function(){
var doc = CmdUtils.getDocument();
jQuery(doc.body).css("-moz-transform", "rotate(0deg)");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment