reekamaharaj / Project1

1 stars 1 forks source link

All search input values are being used. Skeleton function ready for fav page. #25

Closed reekamaharaj closed 4 years ago

reekamaharaj commented 4 years ago

On click of the search button -> all inputs will be saved, the search boxes will be cleared. Saved inputs are taken and turned into a string. Strings will be used to call the search query, which will return the data needed. createRecipeCard function will create a recipe card and display it to the HTML.

On load, there will be a random recipe card that is created and shown on the page. Currently have the default search value set to Noodles unless the user changes it. (search query requires this and will search the title of each recipe to have this word in it)

A skeleton function is in the js file. I have already added the code needed to create a recipe card when the favorites page is loaded (code is in the body tag in HTML).

A function to get the save favorites is needed to go through the skeleton function.

I haven't been able to test fully yet. I will have to wait for tomorrow when I have access to the API again.