diff options
Diffstat (limited to 'StoneIsland/www/js/lib/nav/NavView.js')
| -rw-r--r-- | StoneIsland/www/js/lib/nav/NavView.js | 62 |
1 files changed, 61 insertions, 1 deletions
diff --git a/StoneIsland/www/js/lib/nav/NavView.js b/StoneIsland/www/js/lib/nav/NavView.js index 57eaf357..6e57ec32 100644 --- a/StoneIsland/www/js/lib/nav/NavView.js +++ b/StoneIsland/www/js/lib/nav/NavView.js @@ -3,9 +3,69 @@ var NavView = View.extend({ el: "#nav", events: { + "click .store": "store", + "click .hub": "hub", + "click .story": "story", + "click .archive": "archive", + "click .login": "login", + "click .faq": "faq", + "click .search": "search", + "click .fb": "fb", + "click .insta": "insta", + "click .tw": "tw", }, initialize: function(){ }, + + show: function(){ + $("body").addClass("nav") + }, + + hide: function(){ + $("body").removeClass("nav") + }, + + store: function(){ + this.hide() + app.router.go("store") + }, + hub: function(){ + this.hide() + app.router.go("hub") + }, + story: function(){ + this.hide() + app.router.go("story") + }, + archive: function(){ + this.hide() + app.router.go("archive") + }, + + login: function(){ + this.hide() + app.router.go("login") + }, + + search: function(){ + this.hide() + app.router.go("search") + }, + faq: function(){ + this.hide() + app.router.go("faq") + }, + + fb: function(){ + window.open("https://www.facebook.com/StoneIsland", '_system') + }, + insta: function(){ + window.open("https://instagram.com/stoneisland_official", '_system') + }, + tw: function(){ + window.open("https://twitter.com/stoneisland", '_system') + }, + -})
\ No newline at end of file +}) |
