-
Notifications
You must be signed in to change notification settings - Fork 17
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
isa-w1-Browsers #47
base: main
Are you sure you want to change the base?
isa-w1-Browsers #47
Conversation
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.
Great work @isaerenie 👏 Code already looks good and I see that you've put in quite some effort for this, nice job! Some of the exercises are not working completely as expected yet, please see if you can fix this 💪
liElement.style.border = '1px solid black'; | ||
liElement.style.margin = '10px'; | ||
liElement.style.padding = '10px'; | ||
liElement.style.listStyle = 'none'; |
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.
I would suggest to not set these styles via JavaScript, you can just use the CSS file for this 🙂
imgElement.style.width = '100px'; | ||
imgElement.style.height = '150px'; |
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 same for these styles 😄 You can add them in the CSS file.
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.
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 the expected outcome: https://github.com/HackYourAssignment/Assignments-cohort51/blob/main/assets/catwalk.gif
} | ||
|
||
updateTime(); | ||
setInterval(updateTime, 1000); |
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.
Great code! Works as expected 💪 One tip when it comes to setting intervals, I think it's a good practice to also clear them to avoid memory leaks and performance problems.
By clearing the interval you make sure that it does not run anymore when it is not 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.
No description provided.