Created
March 30, 2020 17:22
-
-
Save leighlars/6fe7319e8d57c3ab7e7901ba7c108462 to your computer and use it in GitHub Desktop.
Magic 8 Ball Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTML & CSS to create a black ball with window for message and "get fortune" button | |
Use JS to make an array of strings of various fortunes | |
Use JS for event listeners to trigger ball shake and message display | |
Add getRandom function to pull a random fortune from array index. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment