diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-09-16 15:07:05 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-09-16 15:07:05 -0400 |
| commit | 164fc4407621b4bd6448dd7790d684635a023726 (patch) | |
| tree | 5622e9432bc7c9cca881f14a0471b6165194a988 /StoneIsland/platforms/ios/www/js/lib/nav/NavView.js | |
| parent | 14699818d58beef4b9b20b3ddb3e03641c0b7f21 (diff) | |
build
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/nav/NavView.js')
| -rw-r--r-- | StoneIsland/platforms/ios/www/js/lib/nav/NavView.js | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/StoneIsland/platforms/ios/www/js/lib/nav/NavView.js b/StoneIsland/platforms/ios/www/js/lib/nav/NavView.js new file mode 100644 index 00000000..c9eb2d4e --- /dev/null +++ b/StoneIsland/platforms/ios/www/js/lib/nav/NavView.js @@ -0,0 +1,75 @@ +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") + $("#curtain").show() + }, + + hide: function(){ + $("body").removeClass("nav") + $("#curtain").hide() + }, + + 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') + }, + + +}) |
