summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/lib/nav/NavView.js
blob: 3949c3c5b66ef0eace6ade573a83aa28953b97d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
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")
    app.curtain.show()
  },
  
  hide: function(){
    $("body").removeClass("nav")
    app.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')
  },
  

})