A simple Reaction Time Test game built with HTML, CSS, and JavaScript.
- Overview
- Features
- Technologies Used
- Installation
- Usage
- JavaScript Functions Structure
- Screenshots
- Contributing
- License
- Contact
The Reaction Time Test is a simple game designed to measure your reaction time. Click on the box as quickly as you can and get the time for your reaction. It's a fun and engaging way to challenge yourself and improve your reflexes.
- Measure reaction time by clicking on a moving box
- Randomly change box color, shape, and position after each click
- Simple and intuitive user interface
- HTML5
- CSS3
- JavaScript
- Clone the repository:
git clone https://github.com/your-username/reaction-time-test.git
- Navigate to the project directory:
cd reaction-time-test
- Open
index.html
in your preferred web browser.
- Open the app in your web browser.
- Click on the box as quickly as possible to measure your reaction time.
- The app will display the time taken to click on the box after each click.
- Enjoy and challenge yourself to improve your reaction time!
The JavaScript code in this project is organized into several functions to handle different parts of the application:
- figureColor(): Changes the color of the figure (box) when clicked.
- figurePosition(top, left): Changes the position of the figure within the container.
- figureShape(size): Changes the shape (size and border radius) of the figure.
- fig.addEventListener("click", ...): Event listener to handle the click event on the figure and measure the reaction time.
Contributions are welcome! Please fork the repository and create a pull request with your changes. Ensure that your code adheres to the project's coding standards.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Surojit Mondal - My LinkedIn - My Email