This is a simple web application that allows users to view and explore XKCD comics using the XKCD API. XKCD is a popular webcomic created by Randall Munroe, known for its humor, wit, and insightful commentary on a wide range of topics.
- View the latest XKCD comic on the homepage.
- Navigate through comics using previous and next buttons.
- Search for comics by comic number.
- Randomly explore XKCD comics using the "Random Comic" button.
- Enjoy alt text for each comic, providing additional context and humor.
- HTML
- CSS
- JavaScript
- XKCD API
To run this web app locally, follow these steps:
- Clone this repository to your local machine:
git clone https://github.com/yourusername/xkcd-comic-viewer.git
- Open the
index.html
file in your preferred web browser.
- When you open the web app, the latest XKCD comic will be displayed on the homepage.
- To navigate to the previous or next comic, use the respective buttons below the comic.
- You can enter a specific comic number and click the "Go" button to view that comic.
- Click the "Random Comic" button to explore a random XKCD comic.
- Hover over the comic to view its alt text for additional humor and context.
- XKCD comics are created by Randall Munroe and are available at https://xkcd.com/.
- This web app is a project created for educational purposes and is not affiliated with XKCD or Randall Munroe.
This project is licensed under the MIT License - see the LICENSE file for details.