schoinh / beep-boop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Beep Boop

A web site that outputs responses based on an input number - June 14, 2019

By Na Hyung Choi

Description

This web site takes a name and a number from a user and returns a range of numbers from 0 to the user input number with the following exceptions:

  • Numbers that contain a 1: entire number is replaced with "Beep!"
  • Numbers that contain a 2: entire number is replaced with "Boop!"
  • Numbers that contain a 3: entire number is replaced with "I'm sorry, INPUTNAME. I'm afraid I can't do that."

These exceptions are written from least to most important. The first exception applies unless the second exception does, and the same with the second and third.

The user has the option to make the computer count from zero to or count to zero from the number selected. This web site functions for both positive and negative numbers.

The web site also features a panic button that shows helpful media to the user.

Specs

Spec Input Output
Returns a range of numbers from 0 to the input number "4" "0, 1, 2, 3, 4"
Replaces the number "3" with "I'm sorry, INPUTNAME. I'm afraid I can't do that." "4" "0, 1, 2, I'm sorry..., 4"
Replaces the number "2" with "Boop!" "4" "0, 1, Boop!, I'm sorry..., 4"
Replaces the number "1" with "Beep!" "4" "0, Beep!, Boop!, I'm sorry..., 4"
Replaces any number containing a "3" with "I'm sorry..." "13" "...11, 12, 'I'm sorry...'"
Replaces any number containing a "2" with "Boop!" "13" "...11, Boop!, I'm sorry..."
Replaces any number containing a "1" with "Boop!" "13" "...Beep!, Boop!, I'm sorry..."
Outputs results in reverse order "4" "4, I'm sorry..., Boop!, Beep!, 0"
Counts from zero to a negative number input "-5" "0, Beep!, Boop!, I'm sorry..., -4, -5"
Counts to zero from a negative number input "-5" "-5, -4, I'm sorry..., Boop!, Beep!, 0"

Setup/Installation Requirements

  • Clone this repository and open the .html file.
  • OR go directly to the Web page

Known Bugs

  • No known bugs at this time.

Technologies Used

  • JavaScript
  • jQuery
  • Bootstrap

Support and contact details

Please contact Na Hyung with questions and comments.

License

GNU GPLv3

Copyright (c) 2019 Na Hyung Choi

About

License:GNU General Public License v3.0


Languages

Language:JavaScript 43.3%Language:HTML 43.2%Language:CSS 13.5%