+ 3
All about like/dislike buttons
Is there any codes or scripts for making like/dislike buttons which will be somewhat like : there will be thumbs up for like and thumbs down for dislike along with the counter beside Anyone here has made it? If so please, share your code with me. Thank you so much.
5 Respostas
+ 9
Have you tried searching in the Playground section? This is one my friend's codes that I think resembles your idea, hope it helps ☺
https://code.sololearn.com/Wi6TFd462Ylu/?ref=app
+ 5
Jits you're welcome ☺, you mean like storing the votes? If that's the case, consider using firebase, like this: https://code.sololearn.com/WCHQrdE6mIA6/?ref=app
+ 4
Jits take into consideration that in that code i used a very weak method to identify user
this code is just a simple demo that uses ClientJS library to generate a "fingerprint" of the device being used and that is how i determine if a user has voted before or not
https://github.com/jackspirou/clientjs
the correct way would have to involve user register/login (which can also be handled by firebase)
i just didn't want to go for a complex overkill for showing a concept
+ 1
thank you Pao, but I need something like this- if someone has liked that post then will it show to others?
+ 1
thanks Pao it was so nice of you that you considered my reply, and since I want to upload it to my website so I am in search for 10-15 lines codes/scripts. I have searched the whole intermet for that, but did not get any success, since, some were asking to signup for voting, now surely the visitors of my website will not signup for just giving vote...so I am in search of such codes which will store the votes and let users vote it whether the liked or disliked.