This is a simple web application that displays jokes fetched from two different APIs. Users can vote on the jokes using emoji buttons and view the current weather. The project is built using HTML, TypeScript, and utilizes Bootstrap for styling.
- Fetch jokes from two different APIs: icanhazdadjoke and Chuck Norris jokes.
- Allow users to vote on jokes using emoji buttons.
- Display the current weather based on geographical coordinates.
- HTML
- TypeScript
- Bootstrap 5.3.2
-
Clone the repository to your local machine.
bashCopy code
git clone https://github.com/your-username/joke-voting-web-app.git
-
Open the project in your preferred code editor.
-
Open the
index.html
file in a web browser to view the application.
- Click the "Siguiente chiste" button to fetch a new joke alternately from the two APIs.
- Vote on jokes using the provided emoji buttons.
- View the current weather displayed at the top of the page.
To contribute or modify the code:
-
Install dependencies.
bashCopy code
# No additional dependencies are required for this project.
-
Make changes to the TypeScript files (
index.ts
) or update the styles in themain.css
file. -
Test the changes in a web browser.
-
Commit and push your changes.
- Joke APIs:
- Weather API: