-
Notifications
You must be signed in to change notification settings - Fork 1
done html,css,js #28
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
base: main
Are you sure you want to change the base?
done html,css,js #28
Conversation
GilHeller
left a comment
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.
Overall nice job!
please see my comments
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.
add .idea/ to .gitignore
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.
add .idea/ to .gitignore
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.
add .idea/ to .gitignore
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.
add .idea/ to .gitignore
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.
add .idea/ to .gitignore
| / person | ||
| <div class="tip-amount-container"> | ||
| <div class="flex-box-tip"> | ||
| <p>Tip amount<br><span style="color:hsl(184, 14%, 56%)">/ person</span></p> |
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.
Why did you use inline styling instead of a class and css?
This can cause a mixed style dependencies. pick on styling method and stick with it.
|
|
||
| // הצגת התוצאה בתיבה | ||
| document.getElementById('total-amount-input').value = `$${result}`; | ||
| console.log("bill amount:", billAmount, "num of ppl:", howManyPpl, "tip:", tipPercentage, "result:", result); // הדפסת הערכים בקונסול |
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.
redundant
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| background-color: hsl(185, 41%, 84%); |
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.
use css variables
| const totalWithTip = billAmount * (1 + tipPercentage); | ||
| const result = howManyPpl > 0 ? (totalWithTip / howManyPpl).toFixed(2) : 0; | ||
|
|
||
| // הצגת התוצאה בתיבה |
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.
Avoid writing comments in Hebrew.
No description provided.