Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paper - Katrina K #62

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

SterlingSunshine
Copy link

No description provided.

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

Choose a reason for hiding this comment

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

Neat!

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

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 on lines +81 to +82
const updateCity = document.getElementById("cityPicker");
updateCity.addEventListener("change", cityUpdate);

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

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