Skip to content

Pine - Ainur#62

Open
adjayanbaeva wants to merge 14 commits intoAda-C16:mainfrom
adjayanbaeva:main
Open

Pine - Ainur#62
adjayanbaeva wants to merge 14 commits intoAda-C16:mainfrom
adjayanbaeva:main

Conversation

@adjayanbaeva
Copy link
Copy Markdown

No description provided.

…nt listener to up and down arrows to increase or decrease the temperature when clicked
…t listener to be able to select skies accordingly
…ions to change the color of temperature accordingly and also to pick landscape emoji accordingly
… selectCity function to show entered city at the top of a page
…tes temperatureColorControl helper function to control color according to temperature
…cape picture change by creating landscapePictureChange() function, makes temperature and currentLandscape a local variable instead of global
…ictures to weather garden, cleans index.js from commented out code
Copy link
Copy Markdown

@CheezItMan CheezItMan left a comment

Choose a reason for hiding this comment

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

Nice work Ainur, very clean code and well written. You hit the learning goals here.

Comment thread index.html
<p>For the lovely city of <span id="currentCity">✨My Hometown✨</span></p>
</section>

<section class="box3" class="input-boxes">
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Two class attributes?

Suggested change
<section class="box3" class="input-boxes">
<section class="box3 input-boxes">

Comment thread index.html
</section>
<section id="box5">
<h3>City Name</h3>
<label for="name">City Name:</label>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The for attribute should match the id of the input

Suggested change
<label for="name">City Name:</label>
<label for="cityName">City Name:</label>

Comment thread styles/index.css

/* .input-boxes {
/* background-color: aqua; */
/* } */ */
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Extra */

Suggested change
/* } */ */
/* } */

Comment thread src/index.js
resetCityName.addEventListener('click', resetCity);
};

document.addEventListener('DOMContentLoaded', registerEventHandlers);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

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