bryansaylor / homework-portfolio

0 stars 0 forks source link

Feedback on assignment #5 #5

Open barryross opened 7 years ago

barryross commented 7 years ago

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 image folder and write JavaScript to make the background image reflect user input based on the Technical Requirements below.

Student: Bryan Saylor

Project URL: https://github.com/bryansaylor/homework-portfolio

Technical Requirements Does Not Meet Expectations (0) Meets Expectations (1) Exceeds Expectations (2)
Call $.val() on inputs to get the string value of your user's input x
Store user input in var city x
Use $.on(submit) or $.click to figure out when the user clicks the "submit" button x
Create if / else if / else conditionals to control the flow of your application x
Write at least six different lines of pseudocode and display them inline as JavaScript comments x
Prevent a form submission using the event.preventDefault() function x
Use the $.ready() handler to delay your code from executing until all DOM assets have been loaded x
Get the first element from an attribute name using $.attr() x
Use the ``\|\| operator in your conditionals to allow for multiple string values to executeif/else if` statement code x
If a user submits "New York" or "New York City" or "NYC" make the background of the page nyc.jpg x
If a user submits "San Francisco" or "SF" or "Bay Area" make the background of the page sf.jpg x
If a user submits "Los Angeles" or "LA" or "LAX" make the background of the page la.jpg x
If a user submits "Austin" or "ATX" make the background of the page austin.jpg x
If a user submits "Sydney" or "SYD" make the background of the page sydney.jpg x
TOTAL: 26/28
barryross commented 7 years ago

Hey Bryan,

Awesome job with this! You nailed the requirements except I was hoping to see some pseudocode in your .js file. All in all, that's a relatively easy "fix" though. Great work on this. Please see inline comments for additional feedback. Keep up the great work! 👍