From 71b2efbbed709bef38b045fcd271d65a4feeb2fe Mon Sep 17 00:00:00 2001 From: Heather Faerber Date: Thu, 10 Oct 2024 15:13:48 -0600 Subject: [PATCH 1/3] Move hint higher in the iteration --- module2/lessons/css_fundamentals.md | 2 +- module2/projects/hang_in_there/index.md | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/module2/lessons/css_fundamentals.md b/module2/lessons/css_fundamentals.md index feaff8eb..73fb401d 100644 --- a/module2/lessons/css_fundamentals.md +++ b/module2/lessons/css_fundamentals.md @@ -97,7 +97,7 @@ For example: //individually apply styles that are not shared .nav-button { - background-color: black; + background-color: lightblue; } .submit-button { diff --git a/module2/projects/hang_in_there/index.md b/module2/projects/hang_in_there/index.md index e32da3db..5439de2a 100644 --- a/module2/projects/hang_in_there/index.md +++ b/module2/projects/hang_in_there/index.md @@ -130,14 +130,13 @@ Result after clicking Show My Poster button: ![result](../../../assets/images/projects/hang-in-there/form-result.png) - On the new poster form view, users should be able to fill out the three input fields and then hit the Show My Poster button + - _Hint: +Notice something weird happening when you click the button to submit the form? Try googling `event.preventDefault()`!_ - When the Show My Poster button is clicked, several things will happen: - First, use the values from the inputs to create a new, unique poster object and save it as the value of the `currentPoster` global variable (part of your data model) - Save the submitted data into the respective arrays (image URL into the images array, etc - all part of your data model) so that future random posters can use the user-created data - Change back to the main poster view (hiding the form view again) - Use the new, unique poster object (which should be saved in the `currentPoster` variable - part of your data model) to display the newly created poster image, title, and quote in the main view on the DOM - -_Hint: -Notice something weird happening when you click the button to submit the form? Try googling `event.preventDefault()`!_