-
Notifications
You must be signed in to change notification settings - Fork 78
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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) { |
There was a problem hiding this comment.
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:
} else if (70<=temperature<=79) { | |
} else if (70<=temperature && temperature<=79) { |
the &&
is equivalent to and
in python.
}; | ||
console.log(skyValue) | ||
} | ||
setTypeOfWeather() |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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.
<h3> Sky </h3> | |
<h2> Sky </h2> |
</section> | ||
|
||
<section id="Weather-Garden"> | ||
<h4> Weather Garden</h4> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<h4> Weather Garden</h4> | |
<h2> Weather Garden</h2> |
|
||
|
||
<section id="City-Name"> | ||
<h3> City Name </h3> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<h3> City Name </h3> | |
<h2> City Name </h2> |
No description provided.