Update README.md

This commit is contained in:
maru21 2024-08-24 21:26:26 +02:00
parent ac1c3bdab1
commit b3b0596865

View File

@ -1,3 +1,53 @@
# pager.js
display texts on small displays
## Description
pager.js is a simple web application that utilizes the HTML5 `<canvas>` element to display words from a given string one at a time. Users can control the speed of the word display and pause or resume the animation using a button. The application is designed to demonstrate the use of the canvas API and basic JavaScript functionalities.
## Features
- Displays words from a predefined string on an HTML5 canvas.
- Users can adjust the speed of word display using an input field.
- A pause/resume button allows users to control the animation.
- Responsive design with a clean and simple user interface.
## Installation
To run this project locally, follow these steps:
1. Clone the repository:
```bash
git clone https://github.com/yourusername/pager.js.git
```
2. Navigate to the project directory:
```bash
cd pager.js
```
3. Open the `index.html` file in your web browser.
## Usage
1. Open the application in your web browser.
2. The canvas will display the first word of the string.
3. Use the input field to adjust the speed of the word display (in milliseconds).
4. Click the "Pause" button to pause the word display. Click it again to resume.
## Code Overview
The main components of the project include:
- **HTML Structure**: Contains a canvas element for displaying text, an input for speed control, and a button for pausing/resuming the display.
- **CSS Styles**: Styles for the body, canvas, button, and input to create a visually appealing layout.
- **JavaScript Logic**: Handles the word display logic, speed adjustment, and pause/resume functionality.
## Contributing
Contributions are welcome! If you have suggestions for improvements or new features, please fork the repository and submit a pull request.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
## Contact
For questions or feedback, please reach out to [your-email@example.com](mailto:your-email@example.com).