Skip to content

Paper - Katrina K#62

Open
SterlingSunshine wants to merge 5 commits into
Ada-C15:mainfrom
SterlingSunshine:main
Open

Paper - Katrina K#62
SterlingSunshine wants to merge 5 commits into
Ada-C15:mainfrom
SterlingSunshine:main

Conversation

@SterlingSunshine

Copy link
Copy Markdown

No description provided.

Comment thread scripts/index.js
Comment on lines +20 to +22
const randEmoji = () => {
return emojiSelector[Math.floor(Math.random() * 5)];
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat!

Comment thread scripts/index.js
Comment on lines +24 to +28
const changeTemp = (delta) => {
state.temp += delta;
const tempDisplay = document.querySelector("#tempDisplay");
tempDisplay.textContent = `${state.temp}`;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great helper function!

How could you add in the text color change here?

Comment thread scripts/index.js
Comment on lines +81 to +82
const updateCity = document.getElementById("cityPicker");
updateCity.addEventListener("change", cityUpdate);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works, but there are multiple event types that can be used here that result in different behavior. The change event doesn't trigger unless user presses enter, while the input event will trigger every time the user inputs a character (https://www.w3schools.com/jsref/event_oninput.asp).

@jbieniosek

Copy link
Copy Markdown

Great work on this project! Part of Wave 2 is missing, but there are some additional enhancements. This project is green!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants