From 685d2f5bd5b27f22b9ce01a99bc578585d955c33 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 14 Sep 2015 18:59:39 -0400 Subject: nav and routing --- StoneIsland/www/js/lib/_router.js | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 StoneIsland/www/js/lib/_router.js (limited to 'StoneIsland/www/js/lib/_router.js') 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(){ + }, + +}) -- cgit v1.2.3-70-g09d2