Open barryross opened 7 years ago
Great work on this assignment Fernanda! I realize I left some marks off, but this are very easy fixes...it was simply because things like Los Angeles
would need to be targeted instead of los angeles
, and I noticed new york-city
instead of new york city
.
Please see inline comments for additional info!
FEWD Week #5 Project: More JavaScript
Description
JavaScript is powerful: we're able to take user interaction and information and use it to update the page without requiring a refresh.
This week, a new startup in your city, CitiPix, is looking to create a personalized picture app that allows users to store pictures they've taken around the world and quickly access them by typing in keywords or tags associated with each photo; they have asked for your help to start building the front-end prototype.
You will begin by building a web-app that will take a user's input and update the background image of the page based on that input.
Once again, you have been given the starter code that includes the HTML and the CSS.
Use the images in the images folder and write JavaScript to make the background image reflect user input based on the Technical Requirements below.
Student: Fernanda Shin
Project URL: https://github.com/fernshin22/City_homework
$.val()
on inputs to get the string value of your user's inputvar city
$.submit()
or$.click()
to figure out when the user clicks the "submit" buttonif / else if / else
conditionals to control the flow of your applicationevent.preventDefault()
function$.ready()
handler to delay your code from executing until all DOM assets have been loaded$.attr()