Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Nour-yahyaoui authored Sep 14, 2024
1 parent 2fd0c20 commit 4e96814
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ function QuizGame() {
p.textContent = "your choice is too big"
p.style.color = "black"
}
else if ((input.value > random) && ((input.value - random) < 10)) {
else if ((input.value >= random) && ((input.value - random) <= 10)) {
p.textContent = "your choice is big"
p.style.color = "black"
}
else if ((input.value < random) && ((random - input.value) > 10)) {
p.textContent = "your choice is too small"
p.style.color = "black"
}
else if ((input.value < random) && ((random - input.value) < 10)) {
else if ((input.value <= random) && ((random - input.value) <= 10)) {
p.textContent = "your choice is small"
p.style.color = "black"
}
Expand Down Expand Up @@ -114,8 +114,8 @@ function QuizGameStyles() {
text-transform: uppercase;
}
input {
max-width: 240px;
height: 30px;
max-width: 200px;
height: 20px;
border-radius: 10px;
border: solid 1px gray;
padding-left: 4px;
Expand Down Expand Up @@ -174,7 +174,7 @@ Ready to start? Go ahead and enter your first guess!`
const contact = document.createElement('a');
contact.textContent = 'contact developer!'
contact.style.textDecoration = "underline";
contact.style.marginLeft= "40%"
contact.style.marginLeft= "50%"
contact.href = "mailto:nourryahyaoui@gmail.com?subject=Feedback from your game";


Expand Down

0 comments on commit 4e96814

Please sign in to comment.