Open MinkNhat1 opened 1 year ago
Hello @MinkNhat1, good start!
Final result: ✅ passed 70% of the requirements
We also have some comments for your work:
aria-label
for better accessibility
https://github.com/MinkNhat1/df-frontend-2023/blob/main/assignment-1/index.html#L65<button/>
for clickable elements
search-func
. It's typically best to avoid naming based on functionality (i.e., func
). Instead, try to describe the content or purpose. Perhaps search-input
would be clearer.script.js
and use addEventListener
instead for the sake of separation of concern
https://github.com/MinkNhat1/df-frontend-2023/blob/main/assignment-1/index.html#L22
txt-box
, btn-yes
, and del-func
, which seem to mix different naming styles.hidden
and .visible
. This way, the styles remain in the stylesheet, and your JS just toggles the classes.
https://github.com/MinkNhat1/df-frontend-2023/blob/main/assignment-1/script.js#L21-L35btn-yes
might be better named something like btn-primary
to describe its purpose rather than its content.float
. With modern layout techniques like Flexbox and Grid, the need for float is greatly reduced since floating elements can sometimes lead to layout issues.
https://github.com/MinkNhat1/df-frontend-2023/blob/main/assignment-1/style.css#L146🌟 Great job using event delegation for the delete buttons and the table body! This is an efficient way to handle events on dynamically added elements.