summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/_router.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/lib/_router.js')
-rw-r--r--StoneIsland/www/js/lib/_router.js42
1 files changed, 42 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/_router.js b/StoneIsland/www/js/lib/_router.js
new file mode 100644
index 00000000..0d0c3bd1
--- /dev/null
+++ b/StoneIsland/www/js/lib/_router.js
@@ -0,0 +1,42 @@
+var SiteRouter = Router.extend({
+
+ el: 'body',
+
+ routes: {
+ '/': 'intro',
+ '/store': 'store',
+ '/hub': 'hub',
+ '/story': 'story',
+ '/archive': 'archive',
+
+ '/faq': 'faq',
+ '/search': 'search',
+ },
+
+ initialize: function(){
+ this.route()
+ },
+
+ go: function(url){
+ if (app.view && app.view.hide) {
+ app.view.hide()
+ }
+ this.parseRoute(url)
+ },
+
+ intro: function(){
+ },
+
+ store: function(){
+ },
+
+ hub: function(){
+ },
+
+ story: function(){
+ },
+
+ archive: function(){
+ },
+
+})