summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/_router.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-09-14 18:59:39 -0400
committerJules Laplace <jules@okfoc.us>2015-09-14 19:06:34 -0400
commit685d2f5bd5b27f22b9ce01a99bc578585d955c33 (patch)
tree8d5dbbae1d9bd4071f5c043ea589b7a1aae4dde6 /StoneIsland/www/js/lib/_router.js
parentc7f78fee3e5c9a78dbd6c22910ca529a0ee34827 (diff)
nav and routing
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(){
+ },
+
+})