()
| 251 | }; |
| 252 | |
| 253 | function goBack() { |
| 254 | clicked = false; |
| 255 | cancelled = false; |
| 256 | initAnimations(); |
| 257 | masterTl.remove(doJump); |
| 258 | masterTl.remove(addConfetti); |
| 259 | confettis.forEach(function(el) { |
| 260 | TweenMax.set(el, {x:0, y: 0, rotation:0}); |
| 261 | }); |
| 262 | title.innerHTML = "Do you want to unsubscribe?"; |
| 263 | subtitle.innerHTML = "If you unsubscribe, you will stop receiving our weekly newsletter."; |
| 264 | unsubscribeButton.style.display = 'block'; |
| 265 | cancelButton.style.display = 'block'; |
| 266 | goBackButton.style.display = 'none'; |
| 267 | |
| 268 | }; |
| 269 | |
| 270 | function initAnimations() { |
| 271 | clicked = false; |
nothing calls this directly
no test coverage detected