Closed jenho-webdev closed 1 year ago
you want link the script2 with script 1 file so you can reuse functions that we built without having to do another set of already exit functions
start by linking the two files first and when you can then call the functions from script2 to script1
you then take the passed on recipeID value in the window.location object to search on same recipes that is being show on page 1but in details on page 2 from the local storage
-Recipe ID from window.location.search to do a new localStorage search function of recipe
close issue as we took care of it with the same script file.
Created a template and conf called on how it can be programmed. this js file is to be separated from from the main page and script file for easy collaboration and minimize conflict when more than one coder to be working on it.
it needs to get the index value from the url that redirect user to the 2nd page for receipt details such as cooking instructions. ingredients and related sport calories burn rate. It may also house the saved recipe UI and displaying user saved recipients.