summaryrefslogtreecommitdiff
path: root/client/button.js
diff options
context:
space:
mode:
authorYuval Adam <yuval@y3xz.com>2015-06-21 10:49:20 +0300
committerYuval Adam <yuval@y3xz.com>2015-06-21 10:49:20 +0300
commit1dc5c79e76bea64f2272f25bcd1826cf63a3d374 (patch)
treee614030ff0cea2b250b04671da947665fd4ba609 /client/button.js
parent6b4620f2f9eba41679990c10eb4e2cc4430a8562 (diff)
Step 4 continue button impl
Diffstat (limited to 'client/button.js')
-rw-r--r--client/button.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/client/button.js b/client/button.js
index 8dd7db7..84e201b 100644
--- a/client/button.js
+++ b/client/button.js
@@ -68,8 +68,11 @@ function animate() {
$('div.dominants').show();
}, delay + 2000);
+}
- delay += 2000;
+function animate2() {
+ var delay = 0;
+ var photos = $('div.photo');
_.delay(function() {
$('li#step4').removeClass('active');
@@ -165,6 +168,10 @@ Template.photos.events({
},
'click button.average': function (event) {
Effects.average();
+ },
+ 'click button.continue': function (event) {
+ animate2();
+ return false;
}
})
@@ -183,7 +190,7 @@ Template.photo.helpers({
return d.getDate() + '-' + (d.getMonth() + 1) + '-' + d.getFullYear();
},
proxy: function (url) {
- return url.replace('https://scontent.cdninstagram.com', '/imgproxy?url=')
+ return url.replace('https://scontent.cdninstagram.com', '/imgproxy?url=');
}
})