Skip to content

MPisicoli/ratingbox.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ratingBox.js

A jQuery plugin that uses Font Awesome to display rating boxes in your page

Setup

<html>
    <head>
        <link rel="stylesheet" href="font-awesome-4.7.0/css/font-awesome.css" />
        <link rel="stylesheet" href="ratingbox.css" />
    </head>
    <body>

        <!-- PAGE BOTTOM -->
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
        <script src="ratingbox.js"></script>
    </body>
</html>

ratingbox.css file is not a mandatory. Use it to customize your rating boxes

Use

<div id="rating1" class="ratingbox"></div>
<script>
    $('#rating1').ratingBox({
        value: 2
    });
</script>

Examples

See index.htm for more examples

About

A jQuery plugin that uses Font Awesome to display rating boxes in your page

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published