Welcome to Help center

We are here to help

User rating

Follow

HTML:
        <div class="rating rating-user">
            <div class="inner"></div>
        </div>
    
Before </body> tag ends:
        <script type="text/javascript" src="assets/js/jquery-2.1.4.min.js"></script>
        <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script>
    
Js
        var ratingUser = $('.rating-user');
        if (ratingUser.length > 0) {
            $('.rating-user .inner').raty({
                path: 'assets/img',
                starOff : 'big-star-off.png',
                starOn  : 'big-star-on.png',
                width: 150,
                targetType : 'number',
                targetFormat : 'Rating: {score}',
            });
        }
    

Have more questions?

Submit a request

Comments

Top
Powered by Zendesk