Reader small image

You're reading from  Bootstrap 4 Cookbook

Product typeBook
Published inJun 2017
Reading LevelBeginner
PublisherPackt
ISBN-139781785889295
Edition1st Edition
Languages
Right arrow
Author (1)
Ajdin Imsirovic
Ajdin Imsirovic
author image
Ajdin Imsirovic

Ajdin Imsirovic is a full-stack web developer who has published several courses on the subject of web design and web development. He has also authored three books, Bootstrap 4 Cookbook, Elm Web Development, and Vue.js Quick Start Guide. In his fourth book, Vue CLI 3 Quick Start Guide, he introduces readers to the rich ecosystem of frontend tooling and best practices.
Read more about Ajdin Imsirovic

Right arrow

Adding a rating system using jQuery Bar Rating plugin


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.

Getting ready

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.

How to do it…

  1. First, in app/partial/_js.ejs, add...
lock icon
The rest of the page is locked
Previous PageNext Chapter
You have been reading a chapter from
Bootstrap 4 Cookbook
Published in: Jun 2017Publisher: PacktISBN-13: 9781785889295

Author (1)

author image
Ajdin Imsirovic

Ajdin Imsirovic is a full-stack web developer who has published several courses on the subject of web design and web development. He has also authored three books, Bootstrap 4 Cookbook, Elm Web Development, and Vue.js Quick Start Guide. In his fourth book, Vue CLI 3 Quick Start Guide, he introduces readers to the rich ecosystem of frontend tooling and best practices.
Read more about Ajdin Imsirovic