Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshay-Rohatgi committed Nov 8, 2021
1 parent fe20125 commit f1bd46b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/templates/fragments/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
<!---<a class="dropdown-item" href="/birds">Birds</a> --->
<!---<a class="dropdown-item" href="/dne">404 error</a> --->
<a class="dropdown-item" href="/">Home</a>
<a class="dropdown-item" href="/mvfetch/login">Login</a>
<!-- <a class="dropdown-item" href="/mvfetch/login">Login</a>-->
<a class="dropdown-item" href="/mvfetch/music">Latest Music</a>
<a class="dropdown-item" href="/mvfetch/movies">Latest Movies</a>
<a class="dropdown-item" href="/mvfetch/genre_selection">Select Genres</a>
<!-- <a class="dropdown-item" href="/mvfetch/genre_selection">Select Genres</a>-->
</div>
</li>
<li class="nav-item dropdown">
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ <h1 style="color:#FB6E52"><strong>Distraction</strong></h1>
<p style="font-family:Candara,serif; color:#4E5B69;"> Fetch Thousands of Personalized Movies and Songs with a Single Click </p>
<a href="/mvfetch/music"><button style="background-color:#FB6E52;">View the Latest Music Releases</button></a>
</div>

</div>
</div>
</div>
Expand Down
5 changes: 4 additions & 1 deletion src/main/resources/templates/mvfetch/movies.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,17 @@ <h2><b>Top New Movie Releases of the Week</b></h2>

</div></body>


<div layout:fragment="script" th:remove="tag">
<!-- Start of custom script specific to page -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.21.1/axios.min.js"
integrity="sha512-bZS47S7sPOxkjU/4Bt0zrhEtWx0y0CRkhEp8IckzK+ltifIIE9EMIMTuT/mEzoIMewUINruDBIR/jJnbguonqQ=="
crossOrigin="anonymous" referrerpolicy="no-referrer"></script>
<script>
function getSelectedGenres() {
// Reset card lists
document.getElementById("cardList1").innerHTML = "";
document.getElementById("cardList2").innerHTML = "";
document.getElementById("cardList3").innerHTML = "";
// Build genre selection parameters with user-selected genres
const form_data = document.querySelectorAll('input[name="with_genres"]:checked')
var genreReqString = ""
Expand Down

0 comments on commit f1bd46b

Please sign in to comment.