-
-
Notifications
You must be signed in to change notification settings - Fork 220
Glasgow | 25-ITP-Sep | Abraham-Habte | Sprint 3| alarmClock app #842
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
Conversation
illicitonion
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.
This is generally looking good, but there's a question about exactly what input you should be taking from the user. Also, look out for places you can avoid duplication!
Sprint-3/alarmclock/index.html
Outdated
| <h1 id="timeRemaining">Time Remaining: 00:00</h1> | ||
| <label for="alarmSet">Set time to:</label> | ||
| <input id="alarmSet" type="number" /> | ||
| <input id="alarmSet" type="datetime-local" required /> |
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.
The requirements ask you to have an input which you can put a number of seconds into, but when I open your app, I see a date-picker. Can you update this to take a number of seconds instead?
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, thanks for the information, based on the requirment i change to number and minimum input to be 1 and for clarification i put placeholder to be second
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.
Looks good! Be aware that placeholders aren't generally accessible (see https://www.deque.com/blog/accessible-forms-the-problem-with-placeholders/) so you may want to look at other ways of conveying this information :)
bp7968h
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.
Nice attempt, a small change otherwise looks good to me!
| <h1 id="timeRemaining">Time Remaining: 00:00</h1> | ||
| <label for="alarmSet">Set time to:</label> | ||
| <input id="alarmSet" type="number" /> | ||
| <input id="alarmSet" type="number" min= "1" placeholder="Second" required /> |
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.
This input field looks good for normal people, how would a screen reader identify what to input, can this be improved for screen readers?
| const updateCountdown = () => { | ||
| const timeLeft = endTime - Date.now(); |
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.
This code is still inconsistently indented compared to the rest of the file
Self checklist
Changelist
I added code to the fucnction set alarm and modifise the input in html.
Questions
No questions