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

Alma-Pine #78

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

Alma-Pine #78

wants to merge 6 commits into from

Conversation

abecerrilsalas
Copy link

No description provided.

Copy link

@alope107 alope107 left a comment

Choose a reason for hiding this comment

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

Awesome job Alma! The functionality is spot-on and the JS code is clean. I love the way you re-use your functions and write nice, compact anonymous callbacks. This project is definitely green!

Comment on lines +31 to +36
<select id="skySelect">
<option>Sunny</option>
<option>Cloudy</option>
<option>Rainy</option>
<option>Snowy</option>
</select>

Choose a reason for hiding this comment

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

Nice use of select!

Comment on lines +6 to +8
const skyOption = document.getElementById("skySelect");
const getInput = skyOption.options[skyOption.selectedIndex].value;
const skyContainer = document.getElementById("sky");

Choose a reason for hiding this comment

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

Nice use of consts here! Also good job getting elements by id.

Comment on lines +29 to +34
const resetCity = () => {
const cityContainer = document.getElementById("cityNameInput");
cityContainer.value = "Seattle 🌧";
// reflect that reset on the header
updateCity();
};

Choose a reason for hiding this comment

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

I love how you re-use the updateCity function here!

Comment on lines +63 to +66
incButton.addEventListener("click", function () {
tempValue += 1;
updateTemp(tempValue);
});

Choose a reason for hiding this comment

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

Nice anonymous callback!


// registerEventHandlers()

document.addEventListener("DOMContentLoaded", registerEventHandlers);

Choose a reason for hiding this comment

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

Good job on remembering to wait for the DOM to be loaded before registering the event handlers.

justify-content: center;
}

.mainAarea {

Choose a reason for hiding this comment

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

I think a typo here prevents this style from being applied.

Comment on lines +36 to +41
.temperatureText {
display:flex;
/* flex-direction: row-reverse; */
align-items: center;
padding: 0px 10px 5px 10px;
}

Choose a reason for hiding this comment

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

Nice use of flex!

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