JQuery + CSS code to make a simple rating widget based on Fontawesome. Nothing fancy but I don't want to figure out how to do it again.
Based on the example found here: http://css-tricks.com/star-ratings/ which unfortunately provides only CSS and no actual functionality.
See it on Plunker: https://plnkr.co/vptHYAnWHMbX2LfR6a02
Basic accessibility features suggested by @7mary4
Thanks! I updated the code to also support the spacebar: https://plnkr.co/edit/vptHYAnWHMbX2LfR6a02?p=preview