Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
vexora-0 authored Feb 10, 2024
1 parent 163f574 commit c38ca84
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ const key = '48aa722f';
var searchInput = document.getElementById('Input');
var displaySearchList = document.getElementsByClassName('fav-container');

fetch('http://www.omdbapi.com/?i=tt3896198&apikey=48aa722f')
.then(res => res.json())
.then(data => console.log(data));

// Upon keypress - function findMovies is initiated
searchInput.addEventListener('input', findMovies);

Expand Down Expand Up @@ -190,4 +186,4 @@ async function favoritesMovieLoader() {
}
//Appending the html to the movie-display class in favorites page
document.querySelector('.fav-container').innerHTML = output;
}
}

0 comments on commit c38ca84

Please sign in to comment.