Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (17 sloc) 596 Bytes
<script src="underscore.js"></script>
<script src="routes.js"></script>
<script>
// dc.history.register(/^#search/, controller.runSearch);
//
// And then you can save arbitrary history fragments.
//
// dc.history.save('search/freedom/p3');
function helloworld(){
alert('hello world');
}
window.hashHistory.initialize();
window.hashHistory.register(/^#search/, function(){ alert('aaaah'); });
//window.hashHistory.register(/^#about/, function(){ alert('about'); });
window.hashHistory.save("search/freedom/p3");
window.hashHistory.register(/^#about/, function(){ alert('about'); });
</script>