Skip to content

Instantly share code, notes, and snippets.

@MarkNijhof
Created November 7, 2010 01:17
Show Gist options
  • Save MarkNijhof/665870 to your computer and use it in GitHub Desktop.
Save MarkNijhof/665870 to your computer and use it in GitHub Desktop.
Sammy_setup
<script type="text/javascript">
$(document).ready(function() {
var app = $.sammy(function() {
this.get('#/', function() {
clear_book_information_panel_when_needed();
});
this.get('#/:book_name/Details', function() {
load_book_information_from_name(this.params['book_name']);
});
});
$(function() {
app.run('#/');
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment