Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function randomSelect() {
- randomBeer.addEventListener('click', function() {
- var number = Math.floor(Math.random() * 8);
- popUp[number].style.visibility = 'visible';
- popUp[number].style.transform = 'scaleY(1)';
- return number;
- })
- }
- function closeRandomSelect() {
- var randSelNumb = randomSelect();
- console.log(randSelNumb);
- }
Add Comment
Please, Sign In to add comment