In this recipe, we'll add a rating system using the jQuery Bar Rating plugin. The plugin documentation can be accessed via http://antenna.io/demo/jquery-bar-rating/examples/. The GitHub repository is available at https://github.com/antennaio/jquery-bar-rating.
To get ready, let's grab the raw JS, available at https://raw.githubusercontent.com/antennaio/jquery-bar-rating/master/dist/jquery.barrating.min.js. Next, we will put GitCDN.xyz
to work and obtain the https://gitcdn.xyz/repo/antennaio/jquery-bar-rating/master/dist/jquery.barrating.min.js
link to use in our script
tag.
Similarly, let's grab the raw CSS available at https://raw.githubusercontent.com/antennaio/jquery-bar-rating/master/dist/themes/fontawesome-stars.css. Now, let's process it via GitCDN.xyz
, and copy the processed link, https://gitcdn.xyz/repo/antennaio/jquery-bar-rating/master/dist/themes/fontawesome-stars.css
.