As a user, I should be able to have some fun with a random sock in the hamper.
AC
WHEN the page loads
THEN then I should see a refresh button
AND when clicked it should pick a random sock
AND display that sock with the authenticatedUser on the page
AND all activity should be CENSORED.
Dev Notes
Add refresh button to hamper.html
Add div to hamper.html with id='hamper'
Add click even to hamper button that calls a function called makeItHappen
makeItHappen should randomly select a sock from the sock array and pass that sock to the hamperBuilder
hamperBuilder should take in a sock and create a domString that displays input socks image and authenticatedUsers image behind a censored bar. It should then pass this domString to the printToDom function
User Story
As a user, I should be able to have some fun with a random sock in the hamper.
AC
WHEN the page loads THEN then I should see a refresh button AND when clicked it should pick a random sock AND display that sock with the
authenticatedUser
on the page AND all activity should be CENSORED.Dev Notes
id='hamper'
makeItHappen
makeItHappen
should randomly select a sock from the sock array and pass that sock to thehamperBuilder
hamperBuilder
should take in a sock and create adomString
that displays input socks image andauthenticatedUsers
image behind a censored bar. It should then pass thisdomString
to theprintToDom
function