Sure! Here’s a detailed README for your project:
The Random Friends Episode Generator is a simple web application that redirects users to a randomly selected episode of the popular TV show "Friends" on Netflix. The idea behind this project came from wanting to watch random episodes of Friends without having to choose a specific one.
Check out the live version of the project here: randomfriendsepisode.aclee.fr
- Redirects users to a random episode of "Friends" on Netflix.
- Uses an external JSON file to store and fetch episode data.
- Simple and clean user interface.
- Built with HTML, CSS, and JavaScript.
- Open the live demo in your web browser.
- Click on the "Watch a Random Episode" button.
- You will be redirected to a random episode of "Friends" on Netflix.
The project consists of the following files:
index.html
: The main HTML file that sets up the structure of the webpage.styles.css
: The CSS file that styles the webpage.script.js
: The JavaScript file that contains the logic for fetching episode data and redirecting to a random episode.episodes.json
: The external JSON file containing the list of episodes with their respective Netflix URLs.
If you want to run the project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/random-friends-episode-generator.git
-
Navigate to the project directory:
cd random-friends-episode-generator
-
Open
index.html
in your preferred web browser.
The episodes.json
file should follow this format:
[
{
"season": 1,
"episodes": [
{
"episode": 1,
"title": "The One Where Monica Gets a Roommate (Pilot)",
"urls": {
"netflix": "/watch/70273997"
}
},
{
"episode": 2,
"title": "The One with the Sonogram at the End",
"urls": {
"netflix": "/watch/70273998"
}
},
{
"episode": 3,
"title": "The One with the Thumb",
"urls": {
"netflix": "/watch/70273999"
}
},
{
"episode": 4,
"title": "The One with George Stephanopoulos",
"urls": {
"netflix": "/watch/70274000"
}
}
]
}
]
Contributions are welcome! If you have any suggestions or improvements, please create a pull request or open an issue.
If you have any questions or feedback, feel free to contact me at [email protected].
Enjoy watching random episodes of Friends! 🎉
-- Written with ChatGPT