-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.coffee
212 lines (179 loc) · 4.09 KB
/
app.coffee
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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
# First Screen
arrowBack.visible = false
arrowBack2.visible = false
claudiaJones_1.visible = false
next1_on.visible = false
EmailBox.visible = false
EmailBox.opacity = 0
whatsyourEmail.opacity = 0
arrowBack.opacity = 0
wrongEmail.visible = false
hmm.visible = false
nameBox1.onClick (event, layer) ->
yourFullName.visible = false
blinker.visible = false
claudiaJones_1.visible = true
next1.visible = false
next1_on.visible = true
next1_on.onClick (event, layer) ->
next1_on.visible = false
next1.visible = true
EmailBox.visible = true
claudiaJones_1.animate
x: 0
opacity: 0
options:
time: 0.8
curve: Bezier.ease
whatsyourname.visible = false
nameBox1.animate
x: 296
opacity: 0
width: 100
options:
time: 0.5
curve: Bezier.easeIn
EmailBox.animate
x: 419
opacity: 1.00
options:
time: 0.8
curve: Bezier.ease
whatsyourEmail.opacity = 1
arrowBack.animate
opacity: 1
options:
time: 1
nameBox1.visible = false
arrowBack.visible =true
# Second Screen
correctEmail.visible = false
rightArrow2.visible = false
enterPassword.visible= false
passwordBox1.visible = false
joinNow.visible = false
arrowBack.onClick (event, layer) ->
EmailBox.visible = false
EmailBox.opacity = 0
whatsyourEmail.opacity = 0
whatsyourname.visible = true
whatsyourname.opacity = 1
yourFullName.visible = false
claudiaJones_1.visible = true
claudiaJones_1.x = 8
claudiaJones_1.opacity = 1
arrowBack.visible = false
arrowBack.opacity = 0
wrongEmail.visible = false
hmm.visible = false
nameBox1.visible = true
nameBox1.opacity = 1
nameBox1.x = 419
nameBox1.width= 315
next1.visible = false
next1_on.visible = true
next1_on.opacity = 1
EmailBox.onClick (event, layer) ->
wrongEmail.visible = true
email_placeholder.visible = false
blinker2.visible = false
hmm.visible = true
EmailBox.onClick (event, layer) ->
hmm.visible = false
wrongEmail.visible = false
correctEmail.visible = true
rightArrow2.visible = true
rightArrow2.onClick (event, layer) ->
# print "hello"
# arrowBack.visible = true
arrowBack2.visible = true
passwordBox1.visible = true
next1.visible = false
rightArrow2.visible = false
whatsyourEmail.visible = false
enterPassword.visible = true
joinNow.visible = true
EmailBox.animate
x: 296
opacity: 0
width: 100
options:
time: 0.5
curve: Bezier.easeIn
passwordBox1.animate
x: 419
opacity: 1
options:
time: 0.8
curve: Bezier.easeIn
# Third Screen
arrowBack.visible = false
#arrowBack2.visible = true
weakPass.visible = false
okPass.visible = false
strongPass.visible = false
#psd8.Group_1.visible = true
A2.opacity= 0
A3.visible = false
A3. opacity = 1
arrowBack2.onClick (event, layer) ->
weakPass.visible = false
okPass.visible = false
strongPass.visible = false
A2.opacity= 0
EmailBox.animate
x: 417
opacity: 1.00
width: 315
correctEmail.visible = true
rightArrow2.visible = true
arrowBack.visible =true
arrowBack2.visible = false
enterPassword.visible = false
whatsyourEmail.visible = true
passwordPlaceholder.visible =true
passwordBox1.visible =false
joinNow.visible=false
joinNow.states.a =
opacity: 0.00
scale: 0.00
blur: 20
brightness: 206
passwordBox1.onClick (event, layer) ->
weakPass.visible = true
passwordPlaceholder.visible = false
blinker2_1.visible = false
passwordBox1.onClick (event, layer) ->
weakPass.visible = false
okPass.visible = true
joinNow.backgroundColor = '#2ecbf3'
joinNow.onClick (event, layer) ->
A2.visible = true
joinNow.animate "a",
options:
time: 1
A1.animate
opacity: 0
delay: 1
A2.animate
opacity: 1
delay: 1
Go_back_to_shopping_in.onClick (event, layer) ->
A3.visible = true
A2.visible= false
passwordBox1.onClick (event, layer) ->
okPass.visible = false
strongPass.visible = true
joinNow.onClick (event, layer) ->
joinNow.animate "a",
options:
time: 1
A1.animate
opacity: 0
delay: 1
A2.animate
opacity: 1
delay: 1
Go_back_to_shopping_in.onClick (event, layer) ->
A3.visible = true
A2.visible = false