Hi Guys. Here is the link to the source code for this project: github.com/hellopyplane/Star-ratings-with-Django-and-Javascript
@nafiyad19504 жыл бұрын
i was waiting for this ;)
@dhruvilshah90984 жыл бұрын
Awesome sir, really liking your content. One suggestion sir if possible make videos on topics like Comment section How to login with Gmail, Facebook etc.. Sending emails to users etc.. Like small small things which would be very helpful!
@derekkroeker45822 жыл бұрын
*Today's bookmark:* 19:47 Done ✅ One thing I want to solve is that, when you tap 3 stars, and then mouse over 2, it looks like you rate 2, before tapping next.
@derekkroeker45822 жыл бұрын
I figured it out. You need to place *arr.forEach(item=> item.addEventListener('mouseover', (event)=> {...}))* under *arr.forEach(item=> item.addEventListener('click', (event)=> {...}))* I made some variables that knows which is the latest click, so then on *arr.forEach(item=> item.addEventListener('mouseleave', (event) => {...}))* I added inside *handleSelect(latestIdVal)* where *latestIdVal = val* inside *arr.forEach(item=> item.addEventListener('click', (event)=> {...}))* This is almost it, I also made some more changes.
@derekkroeker45822 жыл бұрын
Maybe you just need to add a *'mouseleave'* if a button has been clicked, and that might just be it. where *'mouseleave'* would have *handleSelect(latestIdVal)* which equals to *const val = **event.target.id*
@shin-jo2801 Жыл бұрын
finished, thankyoouuu ma mann
@Pyplane Жыл бұрын
I completly forgot about this tutorial 😅 but glad you liked it 🙌✨
@kibwana3 жыл бұрын
Consider adding ability to display the image rating instead of hiding images that have already been rated.
@rangabharath42534 жыл бұрын
Awesome as always 👍😀
@Pyplane4 жыл бұрын
Thanks Ranga! :)
@derekkroeker45822 жыл бұрын
*Today's bookmark:* 5:00.
@aldrinsaurovsarker51594 жыл бұрын
Please I got a problem. when I try to rate something it always says 'something went wrong'. So I opened developer tools and got this error: jquery.min.js:4 POST 127.0.0.1:8000/rate/ 500 (Internal Server Error) What should I do?