Skip to content

Instantly share code, notes, and snippets.

@stephenson
Created March 21, 2011 18:32
Show Gist options
  • Save stephenson/879934 to your computer and use it in GitHub Desktop.
Save stephenson/879934 to your computer and use it in GitHub Desktop.
$(".open-right").live("click", function(e){
e.preventDefault();
var page = $(this).attr("rel");
$("#callflow-selector").animate({"left": "-=640px"}, 500);
$(page).fadeIn();
});
$(".close-right").live("click", function(e){
e.preventDefault();
var page = $(this).attr("rel");
$("#callflow-selector").animate({"left": "+=640px"}, 500);
$(page).fadeOut();
});
var menutemplate = $("#menu-template").clone();
$("#callflow-content").append(menutemplate.attr("id", "menu"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment