Select Git revision
solution.js
-
Brady James Garvin authoredBrady James Garvin authored
script.js 18.93 KiB
class Media {
constructor(title, rating, genre, year, description, seasons, services, imgPath, id) {
this.title = title;
this.rating = rating;
this.description = description;
this.genre = genre;
this.year = year;
// Arrays
this.seasons = seasons;
this.services = services;
// Image path
this.imgPath = imgPath;
this.id = id;
}
}
class Season {
constructor(NumberOfEpisodes) {
this.NumberOfEpisodes = NumberOfEpisodes;
}
}
// === Tv Shows === //
let TheOffice = new Media(
"The Office",
10,
"comedy",
"2005",
"The series depicts the everyday lives of office employees in the Scranton, Pennsylvania, branch of the fictional Dunder Mifflin Paper Company. To simulate the look of an actual documentary, it was filmed in a single-camera setup, without a studio audience or a laugh track.",
[new Season(25), new Season(20), new Season(26), new Season(25)],
["Netflix"],
"Content/theoffice.jpg",
"the_office");
let SouthPark = new Media(
"South Park",
7,
"comedy",
"1997",
"The animated series is not for children. In fact, its goal seems to be to offend as many as possible as it presents the adventures of Stan, Kyle, Kenny and Cartman.",
[new Season(12), new Season(12), new Season(12), new Season(12)],
["Hulu"],
"Content/southpark.jpg",
"south_park");
let DragonBallZ = new Media(
"Dragon Ball Z",
7,
"action",
"1989",
"Dragon Ball Z follows the adventures of Goku who, along with the Z Warriors, defends the Earth against evil. The action adventures are entertaining and reinforce the concept of good versus evil. Dragon Ball Z teaches valuable character virtues such as teamwork, loyalty, and trustworthiness.",
[new Season(12), new Season(8), new Season(24), new Season(25)],
["Crunchyroll", "Hulu"],
'./Content/Dragon-Ball-Z.jpg',
"dragon_ball_z");
let Dark = new Media(
"Dark",
10,
"sci-fi",
"2018",
"When two children go missing in a small German town, its sinful past is exposed along with the double lives and fractured relationships that exist among four families as they search for the kids.",
[new Season(12)],
["Netflix"],
'Content/dark.jpg',
"dark");