Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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