Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vovandreevik/sound-buttons
This project is a simple web application that features buttons which play specific sounds when clicked.
https://github.com/vovandreevik/sound-buttons
Last synced: 6 days ago
JSON representation
This project is a simple web application that features buttons which play specific sounds when clicked.
- Host: GitHub
- URL: https://github.com/vovandreevik/sound-buttons
- Owner: vovandreevik
- Created: 2024-06-19T17:41:58.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-19T17:46:08.000Z (5 months ago)
- Last Synced: 2024-06-20T06:12:17.383Z (5 months ago)
- Language: HTML
- Size: 222 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sound Buttons
This project is a simple web application that has buttons that play certain sounds when pressed. The buttons react differently depending on the sequence of their pressing, which adds an interactive element to the work. The project was made for a student trip for one of the events
## Features
- **Three main buttons:** Each button is associated with a specific sound.
- **Conditional sound playback:** Sounds are played immediately or after a short delay, depending on the sequence of button presses.
- **Visual feedback:** Buttons provide visual feedback when clicked (hover and active states).## Technologies Used
- **HTML5**: For structuring the web page.
- **CSS3**: For styling the web page.
- **JavaScript**: For adding interactivity and sound playback.
- **Google Fonts**: For custom font styling.## Getting Started
### Prerequisites
Ensure you have the following files in the same directory as your HTML file:
- `1.voice.mp3`
- `2.activity.mp3`
- `3.data.mp3`
- `4.error.mp3`### Installation
1. Clone this repository to your local machine:
```bash
git clone https://github.com/your-username/sound-buttons.git
```2. Navigate to the project directory:
```bash
cd sound-buttons
```3. Open the `index.html` file in your web browser to see the project in action.
## Usage
1. **Button 1: "Калибровка звукового модуля"**
- Plays `1.voice.mp3` when clicked.
- Plays `4.error.mp3` followed by `1.voice.mp3` if clicked again after another button.2. **Button 2: "Дефрагментация модуля данных"**
- Plays `3.data.mp3` if the last button clicked was Button 3.
- Plays `4.error.mp3` followed by `3.data.mp3` otherwise.3. **Button 3: "Калибровка кинематики"**
- Plays `2.activity.mp3` if the last button clicked was Button 1.
- Plays `4.error.mp3` followed by `2.activity.mp3` otherwise.## Acknowledgements
- [Google Fonts](https://fonts.google.com/) for the Rubik font.