SATISH
@satish064All comments
- @rishavdhungelSubmitted about 1 month ago
- @xStephxSubmitted about 1 month ago@satish064Posted about 1 month ago
What JavaScript does in this project? And Amazing UI I love it.
1 - @armson45Submitted about 1 month agoWhat challenges did you encounter, and how did you overcome them?
The only challenge I found was to show the response, first I had the html structure so wrong so my js code didn't work, I didn't find a way to make it just with css or a better way than I already have.
What specific areas of your project would you like help with?I'm sure that this is does not have a good structure.
@satish064Posted about 1 month agoif you use this is your toggle minus and plus will be work use this { if (event.target.classList.contains('icon-plus')) { const $response = event.target.nextElementSibling; $response.classList.toggle('show-response'); // debugger if($response.classList.contains('show-response')) { $response.previousElementSibling.setAttribute('src', './assets/images/icon-minus.svg'); } else { $response.previousElementSibling.setAttribute('src', './assets/images/icon-plus.svg'); } } });
0