Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
f087b30
changed the title
JanefrancessC Oct 8, 2022
8e0a658
search field not displaying the filtered array yet(pickedEpisodes)
JanefrancessC Oct 11, 2022
12bf9de
stopped at linking selected option to the episode
JanefrancessC Oct 14, 2022
17c1ef2
stopped at linking selected option to the episode
JanefrancessC Oct 14, 2022
0c6b5a1
select option done
JanefrancessC Oct 17, 2022
efd42f7
Merge pull request #1 from JanefrancessC/level-100
JanefrancessC Oct 17, 2022
c614283
100 complete
JanefrancessC Oct 17, 2022
b88a1c3
Merge pull request #2 from JanefrancessC/level-100
JanefrancessC Oct 17, 2022
97ebaed
lvl-100 complete
JanefrancessC Oct 17, 2022
d7e536d
Merge pull request #3 from JanefrancessC/level-100
JanefrancessC Oct 17, 2022
9910944
350 completed
JanefrancessC Oct 17, 2022
a10038f
Merge pull request #4 from JanefrancessC/level-100
JanefrancessC Oct 17, 2022
d453fca
responsive design
JanefrancessC Oct 17, 2022
08b56c1
Merge pull request #5 from JanefrancessC/level-100
JanefrancessC Oct 17, 2022
4dc7cb6
responsive design
JanefrancessC Oct 17, 2022
5f17d89
Merge pull request #6 from JanefrancessC/level-100
JanefrancessC Oct 17, 2022
d88f32a
responsive design
JanefrancessC Oct 17, 2022
b93966e
Merge pull request #7 from JanefrancessC/level-100
JanefrancessC Oct 17, 2022
0ad3389
responsive tab screen
JanefrancessC Oct 20, 2022
0da89f7
Merge pull request #8 from JanefrancessC/level-100
JanefrancessC Oct 20, 2022
6440ae8
responsive tab screen
JanefrancessC Oct 20, 2022
67e08c6
Merge pull request #9 from JanefrancessC/level-100
JanefrancessC Oct 20, 2022
08d1752
responsive tab screen
JanefrancessC Oct 20, 2022
b2cd437
Merge pull request #10 from JanefrancessC/level-100
JanefrancessC Oct 20, 2022
947fb98
search show and select show added
JanefrancessC Oct 27, 2022
0d5bdf4
Merge pull request #11 from JanefrancessC/level-100
JanefrancessC Oct 27, 2022
1138f95
search show and select show designs
JanefrancessC Oct 27, 2022
d126e03
search show and select show designs
JanefrancessC Oct 27, 2022
04ddd84
Merge pull request #12 from JanefrancessC/level-100
JanefrancessC Oct 27, 2022
c990fab
Merge pull request #13 from JanefrancessC/level-100
JanefrancessC Oct 27, 2022
ac07cd3
search functionality extended
JanefrancessC Oct 27, 2022
c6a87d3
Merge pull request #14 from JanefrancessC/level-100
JanefrancessC Oct 27, 2022
903b905
completed level 500
JanefrancessC Nov 4, 2022
0187d1d
Merge pull request #15 from JanefrancessC/level-100
JanefrancessC Nov 4, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
1 change: 1 addition & 0 deletions episodes.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//DO NOT EDIT THIS FILE


//This content is from https://www.tvmaze.com/
//specifically: https://api.tvmaze.com/shows/82/episodes

Expand Down
Binary file added img/not-found.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
67 changes: 66 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,84 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TV Show Project | My Name (My GitHub username)</title>
<title>TV Show Project | Chioma Okeke (Janefrancess)</title>
<link href="style.css" rel="stylesheet" />
<link href="queries.css" rel="stylesheet" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<!-- <link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css"
integrity="sha512-xh6O/CkQoPOWDdYTDqeRdPCVd1SpvCA9XXcUnZS2FmJNp1coAFzvtCN9BmamE+4aHK8yyUHUSCcJHgXloTyT2A=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/> -->
</head>

<body>
<div id="root">
<section class="search">
<!-- <section id="page-load">


</section> -->
<section id="home-page">
<input type="button" id="back" value="Home" />
</section>
<section id="all-shows">
<select name="select-show" id="select-show">
<option value="" disabled selected>--select show--</option>
</select>
</section>

<section id="show-search" class="">
<i class="fa-solid fa-magnifying-glass search-icon"></i>
<input
type="search"
id="search-show"
placeholder="---search for show---"
onblur="showPlaceholder()"
onfocus="clearShowPlaceholder()"
onclick="reloadShows()"
/>
</section>
<section id="select-reset">
<select name="episodes" id="episodes" class="select-episodes">
<option value="" disabled selected>Select an Episode</option>
</select>
<input type="button" id="btnReset" value="Reset" />
</section>
<section id="input-search">
<div class="search-input-wrapper">
<!-- <i class="fa-solid fa-magnifying-glass search-icon"></i> -->
<input
type="search"
placeholder=" ---Search for Episode---"
id="search-field"
name="search-field"
onfocus="clearPlaceholder()"
onclick="reloadEpisodes()"
onblur="returnPlaceholder()"
/>
</div>
<section class="display">
<p id="display-count"></p>
</section>
</section>
</section>
<section id="container"></section>
</div>

<!-- Loads a provided function called getAllEpisodes() which returns all episodes -->
<script src="episodes.js"></script>

<!-- Loads all shows -->
<script src="shows.js"></script>

<!-- Loads YOUR javascript code -->
<script src="script.js"></script>
</body>
<footer>
Data retrieved from
<a href="https://www.tvmaze.com/">TVMaze.com</a>
</footer>
</html>
54 changes: 54 additions & 0 deletions queries.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
@media (max-width: 1024px) {
#container {
width: 100%;
grid-template-columns: repeat(3, 1fr);
}

}

@media (max-width: 600px) {
.search {
background-color: rgb(9, 9, 9);
width: 100%;
height: 8rem;
flex-direction: column;
justify-content: space-around;
align-items: center;
gap: 1rem;
margin: auto;
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice to see media queries to make the site responsive. there is slight issue with break points as the site doesn't break immediately after hitting the element but goes on to cover it for a bit before it breaks, but its a simple fix


#container {
display: grid;
grid-template-columns: 1fr;
width: 80%;
}

.episode-container {
width: 75%;
margin: 1.5rem 2rem;
margin-left: 3rem;
}

#select-reset {
margin-top: 2rem;
}

#input-search {
justify-content: center;
align-items: center;
gap: 0.7rem;
padding-left: 6rem;
margin-bottom: 1.5rem;
}

#display-count {
color: rgb(218, 33, 16);
font-weight: 700;
font-size: small;
}

#search-field[placeholder="&#128269"] {
opacity: 0;
}
}
Loading