-
Notifications
You must be signed in to change notification settings - Fork 88
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
Sea Turtles-Jenny C #79
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 job Jenny! Your code was functional and I was able to do all of the required tasks in your weather app! I left some comments and shared some resources. Please let me know if you have any questions.
<h1>Weather Report</h1> | ||
</header> | ||
<main> | ||
<div class="grid-display"> |
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.
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.
Thank you so much Trenisha.
<footer> | ||
</footer> |
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.
you don't need the footer tag if you do not have a footer
<footer> | ||
</footer> |
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.
you don't need the footer tag if you do not have a footer
@@ -0,0 +1,139 @@ | |||
'use strict'; | |||
|
|||
const state = { |
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.
👍🏽
@@ -0,0 +1,139 @@ | |||
'use strict'; | |||
|
|||
const state = { |
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.
👍🏽
const increaseTemp = () => { | ||
state.temperature += 1; | ||
updateTempLabel(); | ||
console.log('increase temp'); | ||
}; | ||
|
||
const decreaseTemp = () => { | ||
state.temperature -= 1; | ||
updateTempLabel(); | ||
console.log('decrease temp'); | ||
}; |
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.
functions look good but remove your console logs
|
||
document.addEventListener('DOMContentLoaded', registerEventHandlers); | ||
|
||
const getLatAndLong = () => { |
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.
small note. I would move this function and the function below this before you register the event handlers. Just to make the code more readable.
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.
ok, got it. I thought line 103 was only for all the events so I put it before the API calls. I see now that I put it at the end of index. Thank you
|
||
document.addEventListener('DOMContentLoaded', registerEventHandlers); | ||
|
||
const getLatAndLong = () => { |
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.
small note. I would move this function and the function below this before you register the event handlers. Just to make the code more readable.
styles/index.css
Outdated
|
||
|
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.
you can remove this white space and any other place that has extra white space to make your code more readable
styles/index.css
Outdated
|
||
|
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.
you can remove this white space and any other place that has extra white space to make your code more readable
No description provided.