This website will take in a number from the user and display all the numbers (starting from 0) up to the users inputted number. Some numbers will be replaced with "Beep","Boop", or "I'm sorry Dave, I can't do that" according to certain specifications. You can find a list of these specifications in this README.
You can view the page by following this link: https://cjbreaux.github.io/beep-boop
-
Program returns a range of numbers from 0 to the user input.
- Input: 4
- Output: 0,1,2,3,4
-
For numbers containing 1, ALL digits will be replaced with "Beep!"
- Input: 4
- Output: 0,"Beep!",2,3,4
-
For numbers containing 2, ALL digits will be replaced with "Boop!"
- Input: 4
- Output: 0,"Beep!","Boop!",3,4
- Input: 4
-
For numbers containing 3, ALL digits will be replaced with "I'm sorry Dave, I can't do that right now"
- Input: 4
- Output: 0,"Beep!","Boop!","I'm sorry Dave, I can't do that right now.",4
-
For numbers containing both 1 & 2, ALL digits will be replaced with "Boop!"
- Input: 12
- Output: ..9,"Beep!","Beep!","Boop!"
-
For numbers containing both 2 & 3, ALL digits will be replaced with "I'm sorry Dave, I can't do that right now"
- Input: 23
- Output: (20), "Boop!","Boop!","I'm sorry Dave, I can't do that right now"
- Open Terminal
- Change the current working directory to the location where you want the cloned directory to be made.
- Paste the following into the Terminal:
- git clone https://github.com/cjbreaux/beep-boop.git
- Press Enter to make a local clone.
- Navigate to the new cloned directory.
- Click on index.html to view the site locally.
For best results, please use a Chrome browser. Please note, this project relies upon a CDN to load some resources. You will need to be connected to the internet for the site to display properly.
- Will continue to add text after upon repeated submissions. (workaround by hiding submit button from user!)
- Displays form even if user inputs NaN (workaround by returning output for if isNaN check. creates error message at line 32)
- Ignores non-alphabetical characters as long as some numbers are inputted. (feature or bug?)
If you have any questions or concerns about the content of this README or the website, please contact the author at:
You can find additional projects by the author at:
This site utilizes JavaScript, jQuery v3.3.1, Bootstrap v4.2.1, and a custom CSS stylesheet.
GPL
Copyright (c) 2019 Chris Breaux