123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- $(function() {
-
- 'use strict'
- $.fn.raty.defaults.path = '../images/rating/';
-
- $('#default-star-rating').raty();
-
- $('#score-rating').raty({
- score: 3
- });
-
- $('#no-of-stars').raty({
- number: 10
- });
-
- $('#max-number-stars').raty({
- numberMax: 5,
- number: 100
- });
-
- $('#read-only-stars').raty({
- readOnly: true,
- score: 3
- });
-
- $('#no-rated-msg').raty({
- half: true,
- readOnly: true
- });
-
- $('#cancel-star').raty({
- cancel: true
- });
-
- $('#space-star').raty({
- space: false
- });
-
- $('#single-star').raty({
- single: true
- });
-
- $('#half-star').raty({
- half: true,
- });
-
- $('#star-half').raty({
- half: true,
- starHalf: 'star-half.png'
- });
-
- $('#round-enabled').raty({
- score: 3.26
- });
-
- $('#round-disabled').raty({
- halfShow: false,
- score: 3.26
- });
-
- $('#custom-icon-star').raty({
- starOff: 'heart.png',
- starOn: 'like.png'
- });
-
- $('#icon-range').raty({
- iconRange: [
- { range: 1, on: 'wi wi-day-rain-wind font-size-18', off: 'wi wi-day-cloudy font-size-18' },
- { range: 2, on: 'wi wi-day-sleet font-size-18', off: 'wi wi-day-sleet-storm font-size-18' },
- { range: 3, on: 'wi wi-day-snow font-size-18', off: 'wi wi-day-storm-showers font-size-18' },
- { range: 4, on: 'wi wi-night-alt-snow font-size-18', off: 'wi wi-night-alt-thunderstorm font-size-18' },
- { range: 5, on: 'wi wi-night-snow-thunderstorm font-size-18', off: 'wi wi-night-snow-wind font-size-18' }
- ],
- starType: 'i'
- });
- });
|