Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 21 lines (17 sloc) 0.596 kB
1f848e3 @addyosmani initial release. needs a cleanup and docs
authored
1 <script src="underscore.js"></script>
2 <script src="routes.js"></script>
3 <script>
4 // dc.history.register(/^#search/, controller.runSearch);
5 //
6 // And then you can save arbitrary history fragments.
7 //
8 // dc.history.save('search/freedom/p3');
9
10 function helloworld(){
11 alert('hello world');
12 }
13
14
15 window.hashHistory.initialize();
16 window.hashHistory.register(/^#search/, function(){ alert('aaaah'); });
17 //window.hashHistory.register(/^#about/, function(){ alert('about'); });
18 window.hashHistory.save("search/freedom/p3");
19
20 window.hashHistory.register(/^#about/, function(){ alert('about'); });
21 </script>
Something went wrong with that request. Please try again.