Skip to content

Instantly share code, notes, and snippets.

@jmarnold
Created June 8, 2012 06:16
Show Gist options
  • Save jmarnold/2893912 to your computer and use it in GitHub Desktop.
Save jmarnold/2893912 to your computer and use it in GitHub Desktop.
Hello World Screen
$(function() {
var helloView = null;
var helloScreen = {
activate: function() {
helloView = $.diagnostics.createView('Hello World!');
helloView.configure(function() {
this.append('<p>Check this out</p>');
});
helloView.show();
},
deactivate: function() {
helloView.hide();
}
};
$.diagnostics.registerScreen('keydown.ctrl_z', 'Hello World', helloScreen);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment