Skip to content

Instantly share code, notes, and snippets.

@ChrisMissal
Created October 13, 2009 03:13
Show Gist options
  • Save ChrisMissal/208942 to your computer and use it in GitHub Desktop.
Save ChrisMissal/208942 to your computer and use it in GitHub Desktop.
function createMenu(desk) {
var createMenuItem = function(text, className) {
return $("<div/>").html(text).addClass("clickable").addClass(className).hide();
};
desk.append(createMenuItem('Trouble', 'troubleFlag'));
desk.append(createMenuItem('Leader', 'leaderFlag'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment