-
Notifications
You must be signed in to change notification settings - Fork 0
/
scripts.js
21 lines (17 loc) · 882 Bytes
/
scripts.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/***************** Fire them all! *****************/
window.addEventListener('load', function() {
// Start the celebration! Woooo!
celebrate();
document.querySelector('.modal-button--show-next').addEventListener('click', function() {
stopCelebration();
document.querySelector('.modal-page--first').classList.add('modal-page--hidden');
document.querySelector('.modal-page--last').classList.remove('modal-page--hidden');
});
document.getElementById('end-wizard').addEventListener('click', function() {
document.getElementById('magic-dot').classList.add('magic-dot-expanded');
document.querySelector('.wizard-end-container').classList.add('wizard-end-appear');
document.querySelector('.magic-text-container').classList.add('magic-text-container-appear');
animateSmile();
setTimeout(function(){animateSvgSmil('blinking-face-obj', 'blink');}, 1300);
});
});