Contributors Forks Stargazers Issues MIT License LinkedIn


Basketball Scoreboard

About The Project

image

The code (scrimba project) provides basic functionality for managing and displaying scores within a web application.

Purpose:

The provided JavaScript code is designed to manipulate and display numerical values within HTML elements. It specifically focuses on updating and resetting scores, likely in a context like a game or scorekeeping application.

Functionality:

  • Identifies HTML elements: The code selects two HTML elements with the IDs "home-result" and "guest-result" and stores references to them in variables markerHome and markerGuest, respectively. These elements probably display the scores for two teams or players. Defines functions:
  • put(e): This function is used to increment a score. It takes an event object e as input, which presumably contains information about which team's score should be updated and the value to add. The function retrieves the current score from the appropriate HTML element, converts it to a number, adds the new value, and then updates the HTML element with the new score.
  • make(e): This function is used to reset a score to zero. Similar to put, it takes an event object e and determines which score to reset based on the event information. It then sets the corresponding HTML element's content to "0".

Built With

  • HTML, CSS, JavaScript

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

  • Check if Node.js is installed
    node -v

If it is not installed, download and install it.

Installation

  1. Clone the repo
    git clone https://github.com/lalomax/BasketBall-Scoreboard.git
  2. Open directory
    cd BasketBall-Scoreboard

(back to top)

Roadmap

  • Add Changelog
  • Multi-language Support

See the open issues for a full list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request
flowchart 
    A(1. Clone the repository) --> B((Clone Fork))
    B --> C{2. Create Feature Branch}
    C --> D[Make Changes]
    D --> E((3. Commit Changes))
    E --> F((4. Push Changes))
    F --> G((5. Create Pull Request))
    G -- Approved --> H((Merge Pull Request))
    G -- Rejected --> D
Loading

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

Orlando - https://x.com/OrlandoFloresH - lalomax365.bo@gmail.com

Project Link: https://github.com/lalomax/internationalize

(back to top)

Acknowledgments