brandonnorsworthy / pet-seeker

Pet Seeker is a user-friendly website that can help you find your new four-legged friend! The site searches the web to bring thousands of adoptable pets right to users' fingertips. Then, users can "like" or "dislike" these pets, thereby creating a shortlist of their liked pets. Finally, users can follow links provided to get more information on the adoption process of bringing your new pet home.
https://brandonnorsworthy.github.io/pet-seeker/
MIT License
1 stars 2 forks source link

Connect the preferences to the API call to Pet Finder #44

Closed brandonnorsworthy closed 3 years ago

brandonnorsworthy commented 3 years ago

image age, gender, size... can just be like

age = document.getElementById("Age").value

thereby "linking" the element in the html to the js api call

mguppy commented 3 years ago

Updated preferences to be called on submit by users so that the API call only generates the animals that align with the user's preferences