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

Project Guess Who - Week 3 Julia #336

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

Conversation

JuliaHolm
Copy link

@JuliaHolm JuliaHolm commented Sep 10, 2023

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Project Name</title>

Choose a reason for hiding this comment

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

the name could be changed? :)

padding: 5vw;
align-items: center;
box-sizing: border-box;
background: linear-gradient(90deg, lightsalmon, #c58fc9, #48D1CC);

Choose a reason for hiding this comment

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

loving the gradient!!!

charactersInPlay = CHARACTERS;
generateBoard(); // Invokes generateBoard function.
setSecret(); // Invokes setSecret function.
filterBtn.disabled = true; // Disables the "Find Out" button before the player has selected an option from the selection menu.

Choose a reason for hiding this comment

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

nice solution! Also, good explanation in comments of what's going on!

const category = questions.options[questions.selectedIndex].parentNode.label
filterBtn.disabled = false; // Enables the "Find Out" button when a selection has been made.
filterBtn.style.opacity = "1"; // Opacity set to default on the find out button.
const category = questions.options[questions.selectedIndex].parentNode.label; // This variable stores what option group the question belongs to.

// This variable stores what option group (category) the question belongs to.

Choose a reason for hiding this comment

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

I think maybe you left the already existing comment, and wrote a new one that explains the same piece of code? Makes it a little confusing

Copy link

@verawitting verawitting left a comment

Choose a reason for hiding this comment

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

Clear code overall! It's easy to follow, due to comments and structure. I think you seem to have a quite consistent naming of variables, super! And most important, to me it seems to be running perfectly. As I kind of expect from the CSS pro that you are, you added some nice css, fun! As you mentioned to me before, you have started a new version of the page, so my comments might be a little all over, sorry for that.

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