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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
|
var klassTimeout;
var NavView = View.extend({
el: "#nav",
events: {
"click .logo": "intro",
"click .store": "store",
"click .hub": "hub",
"click .story": "story",
"click .archive": "archive",
"click .login": "login",
"click .logout": "logout",
"click .account": "account",
"click .faq": "faq",
"click .search": "search",
"click .main": "back",
"click .account_back": "back",
"click .profile": "profile",
"click .payment": "payment",
"click .shipping": "shipping",
"click .settings": "settings",
"click .orders": "orders",
"click .return_link_us": "return_link_us",
"click .return_link_ca": "return_link_ca",
"click .destroy_account": "destroy_account",
"click .faq_back": "back",
"click .privacy": "privacy",
"click .account_terms": "account_terms",
"click .returns": "returns",
"click .terms": "terms",
"click .care": "care",
"click .covid": "covid",
"click .fb": "fb",
"click .insta": "insta",
"click .tw": "tw",
"click .yt": "yt",
"click .close": "close",
},
initialize: function(){
},
show: function(klass){
$("body").addClass("nav")
app.curtain.show("dark")
doneShowingNav = false
setTimeout(function(){
doneShowingNav = true
}, 800)
if (klass) {
klassTimeout = setTimeout(function(){
this.addClass(klass)
}.bind(this), 500)
}
},
hide: function(){
if (!doneShowingNav) {
clearTimeout(klassTimeout)
}
$("body").removeClass("nav")
app.curtain.hide("dark")
},
intro: function(){
this.hide()
app.router.go("intro")
},
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()
auth.last_view = app.view
app.router.go("account/login")
},
logout: function(){
this.hide()
auth.last_view = app.view
app.router.go("account/logout")
},
account: function(){
this.el.className = "account"
},
back: function(){
this.el.className = ""
},
profile: function(){
this.hide()
app.router.go("account/profile")
},
payment: function(){
this.hide()
app.router.go("account/payment")
},
shipping: function(){
this.hide()
app.router.go("account/shipping")
},
orders: function(){
this.hide()
app.router.go("account/orders")
},
settings: function(){
this.hide()
app.router.go("account/settings")
},
return_link_us: function(){
window.open("https://www.stoneisland.com/us/ProductExchange/SearchOrder/Index?utm_source=AppMobile&utm_medium=referral&utm_campaign=ReturnForm", '_system')
},
return_link_ca: function(){
window.open("https://www.stoneisland.com/ca/ProductExchange/SearchOrder/Index?utm_source=AppMobile&utm_medium=referral&utm_campaign=ReturnForm", '_system')
},
destroy_account: function(){
this.hide()
app.router.go("account/destroy_account")
},
faq: function(){
this.el.className = "faq"
},
privacy: function(){
this.hide()
app.router.go("page/privacy")
},
account_terms: function(){
this.hide()
app.router.go("page/account_terms")
},
returns: function(){
this.hide()
app.router.go("page/returns")
},
terms: function(){
this.hide()
app.router.go("page/terms")
},
care: function(e){
e.preventDefault()
window.open("https://www.stoneisland.com/customercare?utm_source=AppMobile&utm_medium=referral&utm_campaign=CustomerCare", '_system')
},
covid: function(e){
e.preventDefault()
window.open("https://www.stoneisland.com/system/selfservice.controller?CONFIGURATION=1701&PARTITION_ID=1&CMD=BROWSE_TOPIC&LANGUAGE=en&COUNTRY=us&USERTYPE=1&TOPIC_ID=149680", '_system')
},
search: function(){
this.hide()
app.router.go("search")
},
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')
},
yt: function(){
window.open("https://www.youtube.com/user/StoneIslandOfficial", '_system')
},
close: function(){
this.hide()
},
})
|