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

Melinda H. Pine Class #77

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

Melinda H. Pine Class #77

wants to merge 2 commits into from

Conversation

mhayes2019
Copy link

No description provided.

Copy link

@jbieniosek jbieniosek left a comment

Choose a reason for hiding this comment

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

Great work on this! Nice use of semantic HTML. This project has waves 1, half of 2, 3 & 4. Your LP listed waves 1, 2 & 3, but this is an equivalent amount of work, so this project is green.


if (temperature >=80) {
color = 'red'
} else if (70<=temperature<=79) {

Choose a reason for hiding this comment

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

I know this section isn't running right now, but I wanted to point out a syntax issue. This type of conditional has to be formatted like this:

Suggested change
} else if (70<=temperature<=79) {
} else if (70<=temperature && temperature<=79) {

the && is equivalent to and in python.

};
console.log(skyValue)
}
setTypeOfWeather()

Choose a reason for hiding this comment

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

I recommend moving this call inside the 'registerEventHandlers' function, so that it's guaranteed to run after the html is loaded.

</section>

<section id="Sky-Container">
<h3> Sky </h3>

Choose a reason for hiding this comment

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

This section is a sibling of the temperature section, so the h-tag level would be the same.

Suggested change
<h3> Sky </h3>
<h2> Sky </h2>

</section>

<section id="Weather-Garden">
<h4> Weather Garden</h4>

Choose a reason for hiding this comment

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

Suggested change
<h4> Weather Garden</h4>
<h2> Weather Garden</h2>



<section id="City-Name">
<h3> City Name </h3>

Choose a reason for hiding this comment

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

Suggested change
<h3> City Name </h3>
<h2> City Name </h2>

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