MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / goBack

Function goBack

assets/js/unsub_page.js:253–268  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 1

initAnimationsFunction · 0.85

Tested by

no test coverage detected