index.html 144 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934
<!DOCTYPE html>
<html dir="ltr" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="author" content="Washington Botelho">
<meta name="description" content="A Star Rating Plugin">
<meta name="google" content="notranslate">
<meta name="keywords" content="jquery,plugin,rating,raty,voto,star,staring,classificacao,classificar,votar,plugin">
<meta name="robots" content="ALL">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">


<link href="favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon">

<title>jQuery Raty | A Star Rating Plugin - Washington Botelho</title>

<meta content="authenticity_token" name="csrf-param">


  <link href="stylesheets/labs.css" media="screen" rel="stylesheet" type="text/css">

<link rel="stylesheet" href="../lib/jquery.raty.css">
<style>.functions .demo {
  margin-bottom: 10px;
}

.functions .item {
  background-color: #FEFEFE;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 5px;
  padding: 5px 10px;
}

.functions .item a {
  border: 1px solid #CCC;
  margin-left: 10px;
  padding: 5px;
  text-decoration: none;
}

.functions .item input {
  display: inline-block;
  margin-left: 2px;
  padding: 5px 6px;
  width: 120px;
}

.functions .item label {
  display: inline-block;
  font-size: 1.1em;
  font-weight: bold;
}

.hint {
  text-align: center;
  width: 160px
}

div.hint {
  font-size: 1.4em;
  height: 46px;
  margin-top: 15px;
  padding: 7px
}
</style>

<script src="../vendor/jquery.js"></script><script src="../lib/jquery.raty.js"></script>
<script src="javascripts/labs.js" type="text/javascript"></script>

</head>
<body>
  <div class="content">
    <div role="banner" class="header">
  <h1><a href="/raty">jQuery Raty</a></h1>

  <div>A Star Rating Plugin</div>
</div>

    <nav role="navigation" class="navigation">
  <a href="http://github.com/wbotelhos/archive/2.7.0.zip" class="download" title="Download version 2.7.0"><i class="i-file-zip"></i> v2.7.0</a>
  <a href="http://github.com/wbotelhos/raty" class="i-github" target="blank" title="Github &lt;http://github.com/wbotelhos/raty&gt;"></a>
  <a href="http://wbotelhos.com/labs" class="labs i-labs" target="blank" title="Labs &lt;http://wbotelhos.com/labs&gt;"></a>

  <i class="i-heart" title="Thank you! &lt;3"></i>

<div id="donations">
  <a href="http://gittip.com/wbotelhos" target="_blank">Git tip</a>
  <span>โ€ข</span>
  <a href="http://www.paypal.com/cgi-bin/webscr?cmd=_donations&amp;business=X8HEP2878NDEG&amp;item_name=jQuery%20Raty" target="_blank">Paypal</a>
</div>

</nav>


    <div class="clearfix"></div>

<article>

  <div class="body">
    <h1>Default</h1>

<p>You need just to have a <code>div</code> to build the Raty.</p>

<div id="default"></div>
<div class="highlight"><pre><span class="nt">&lt;div&gt;&lt;/div&gt;</span>
</pre></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">();</span>
</pre></div>
<h1>Score</h1>

<p>Used when we want starts with a saved rating.</p>

<div id="score"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span> <span class="nx">score</span><span class="o">:</span> <span class="mi">3</span> <span class="p">});</span>
</pre></div>
<h1>Score callback</h1>

<p>If you need to start you score depending of a dynamic value, you can to use callback for it.<br>
You can pass any value for it, not necessarily a data- value. You can use a field value for example.</p>

<div id="score-callback" data-score="1"></div>
<div class="highlight"><pre><span class="nt">&lt;div</span> <span class="na">data-score=</span><span class="s">"1"</span><span class="nt">&gt;&lt;/div&gt;</span>
</pre></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">score</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
    <span class="k">return</span> <span class="nx">$</span><span class="p">(</span><span class="k">this</span><span class="p">).</span><span class="nx">attr</span><span class="p">(</span><span class="s1">'data-score'</span><span class="p">);</span>
  <span class="p">}</span>
<span class="p">});</span>
</pre></div>
<h1>Score Name</h1>

<p>Changes the name of the hidden <a href="#score">score</a> field.</p>

<div id="scoreName"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span> <span class="nx">scoreName</span><span class="o">:</span> <span class="s1">'entity[score]'</span> <span class="p">});</span>
</pre></div>
<h1>Number</h1>

<p>Changes the number of stars.</p>

<div id="number"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span> <span class="nx">number</span><span class="o">:</span> <span class="mi">10</span> <span class="p">});</span>
</pre></div>
<h1>Number callback</h1>

<p>You can receive the <a href="#number">number</a> of stars dynamic using callback to set it.</p>

<div id="number-callback" data-number="3"></div>
<div class="highlight"><pre><span class="nt">&lt;div</span> <span class="na">data-number=</span><span class="s">"3"</span><span class="nt">&gt;&lt;/div&gt;</span>
</pre></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">number</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
    <span class="k">return</span> <span class="nx">$</span><span class="p">(</span><span class="k">this</span><span class="p">).</span><span class="nx">attr</span><span class="p">(</span><span class="s1">'data-number'</span><span class="p">);</span>
  <span class="p">}</span>
<span class="p">});</span>
</pre></div>
<h1>Number Max</h1>

<p>Change the maximum of start that can be created.</p>

<div id="numberMax"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">numberMax</span> <span class="o">:</span> <span class="mi">5</span><span class="p">,</span>
  <span class="nx">number</span>    <span class="o">:</span> <span class="mi">100</span>
<span class="p">});</span>
</pre></div>
<h1>Read Only</h1>

<p>You can prevent users to vote. It can be applied with or without <a href="#score">score</a> and all stars will receives the <a href="#hints">hint</a> corresponding of the selected star.<br>
Stop the mouse over the stars to see:</p>

<div id="readOnly"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span> <span class="nx">readOnly</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span> <span class="nx">score</span><span class="o">:</span> <span class="mi">3</span> <span class="p">});</span>
</pre></div>
<h1>Read Only callback</h1>

<p>You can decide if the rating will be <a href="#readOnly">readOnly</a> dynamically returning <code>true</code> of <code>false</code> on callback.</p>

<div id="readOnly-callback"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">readOnly</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
    <span class="k">return</span> <span class="s1">'true becomes readOnly'</span> <span class="o">==</span> <span class="s1">'true becomes readOnly'</span><span class="p">;</span>
  <span class="p">}</span>
<span class="p">});</span>
</pre></div>
<h1>No Rated Message</h1>

<p>If <a href="#readOnly">readOnly</a> is enabled and there is no <a href="#score">score</a>, the <a href="#hint">hint</a> "Not rated yet!" will be shown for all stars. But you can change it.<br>
Stop the mouse over the star to see:</p>

<div id="noRatedMsg"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">readOnly</span>   <span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
  <span class="nx">noRatedMsg</span> <span class="o">:</span> <span class="s2">"I'am readOnly and I haven't rated yet!"</span>
<span class="p">});</span>
</pre></div>
<h1>Half Show</h1>

<p>You can represent a float <a href="#score">score</a> as a half star icon.<br>
This options is just to <strong>show</strong> the half star. If you want enable the vote with half star on mouseover, please check the option <a href="#half">half</a>.<br>
The <code>round</code> options showed belows is just for the <strong>icon</strong>, the score keeps as <strong>float</strong> always.</p>

<h2>Enabled</h2>

<p>The round rules are:</p>

<ul>
<li>Down: score &lt;= x.25 the star will be rounded down;</li>
<li>Half: score &gt;= x.26 and &lt;= x.75 the star will be a half star;</li>
<li>Up: score &gt;= x.76 the star will be rounded up.</li>
</ul>

<div id="halfShow-true"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span> <span class="nx">score</span><span class="o">:</span> <span class="mf">3.26</span> <span class="p">});</span>
</pre></div>
<h2>Disabled</h2>

<p>The rules becomes:</p>

<ul>
<li>Down: score &lt; x.6 the star will be rounded down;</li>
<li>Up: score &gt;= x.6 the star will be rounded up;</li>
</ul>

<div id="halfShow-false"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">halfShow</span> <span class="o">:</span> <span class="kc">false</span><span class="p">,</span>
  <span class="nx">score</span>    <span class="o">:</span> <span class="mf">3.26</span>
<span class="p">});</span>
</pre></div>
<h1>Round</h1>

<p>You can customize the round values of the <a href="#halfShow">halfShow</a> option.<br>
We changed the default interval [x.25 .. x.76], now x.26 will round down instead of to be a half star.<br>
Remember that the <code>full</code> attribute is used only when halfShow is disabled.<br>
You can specify just the attribute you want to change and keeps the others as default.</p>

<div id="round"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">round</span> <span class="o">:</span> <span class="p">{</span> <span class="nx">down</span><span class="o">:</span> <span class="p">.</span><span class="mi">26</span><span class="p">,</span> <span class="nx">full</span><span class="o">:</span> <span class="p">.</span><span class="mi">6</span><span class="p">,</span> <span class="nx">up</span><span class="o">:</span> <span class="p">.</span><span class="mi">76</span> <span class="p">},</span>
  <span class="nx">score</span> <span class="o">:</span> <span class="mf">3.26</span>
<span class="p">});</span>
</pre></div>
<h1>Half</h1>

<p>Enables the half star mouseover to be possible vote with half values.<br>
If you want to vote with more precison than half value, please check the option <a href="#precision">precision</a>.</p>

<div id="half"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'#star'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span> <span class="nx">half</span><span class="o">:</span> <span class="kc">true</span> <span class="p">});</span>
</pre></div>
<h1>Star Half</h1>

<p>Changes the name of the half star.<br>
Pay attention, when you want specify a different icon with a different directory, you must to set the <a href="#path">path</a> option to <code>null</code> to avoid it to be prepended on your path and, consequently, specify all other icons with explicit original path.</p>

<div id="starHalf"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">half</span>     <span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
  <span class="nx">starHalf</span> <span class="o">:</span> <span class="s1">'star-half-mono.png'</span>
<span class="p">});</span>
</pre></div>
<p>You can to use the size of icon you want.</p>

<div id="size"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">cancel</span>  <span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
  <span class="nx">starOff</span> <span class="o">:</span> <span class="s1">'star-off-big.png'</span><span class="p">,</span>
  <span class="nx">starOn</span>  <span class="o">:</span> <span class="s1">'star-on-big.png'</span>
<span class="p">});</span>
</pre></div>
<h1>Click</h1>

<p>Callback to handle the <a href="#score">score</a> and the click <code>event</code> on click action.<br>
You can mension the Raty element (DOM) itself using <code>this</code>.</p>

<div id="click"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">click</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">score</span><span class="p">,</span> <span class="nx">evt</span><span class="p">)</span> <span class="p">{</span>
    <span class="nx">alert</span><span class="p">(</span><span class="s1">'ID: '</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">id</span> <span class="o">+</span> <span class="s2">"\nscore: "</span> <span class="o">+</span> <span class="nx">score</span> <span class="o">+</span> <span class="s2">"\nevent: "</span> <span class="o">+</span> <span class="nx">evt</span><span class="p">);</span>
  <span class="p">}</span>
<span class="p">});</span>
</pre></div>
<h1>Click Prevent</h1>

<p>If you return <code>false</code> into callback, the click action will be prevented.</p>

<div id="click-prevent"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">click</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">score</span><span class="p">,</span> <span class="nx">evt</span><span class="p">)</span> <span class="p">{</span>
    <span class="nx">alert</span><span class="p">(</span><span class="s1">'Score will not change.'</span><span class="p">)</span>
    <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
  <span class="p">}</span>
<span class="p">});</span>
</pre></div>
<h1>Hints</h1>

<p>Changes the hint for each star by it position on array.<br>
If you pass <code>null</code>, the <a href="#score">score</a> value of this star will be the hint.<br>
If you pass <code>undefined</code>, this position will be ignored and receive the default hint.</p>

<div id="hints"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span> <span class="nx">hints</span><span class="o">:</span> <span class="p">[</span><span class="s1">'a'</span><span class="p">,</span> <span class="kc">null</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="kc">undefined</span><span class="p">,</span> <span class="s1">'*_*'</span><span class="p">]});</span>
</pre></div>
<h1>Path</h1>

<p>Changes the path where your icons are located.<br>
Set it only if you want the same path for all icons.<br>
Don't mind about the last slash of the path, if you don't put it, it will be setted for you.</p>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span> <span class="nx">path</span><span class="o">:</span> <span class="s1">'assets/images'</span> <span class="p">});</span>
</pre></div>
<p>Now we have the following full paths: <strong>assets/images/star-on.png</strong>, <strong>assets/images/star-off.png</strong> and so.</p>

<h1>Path Callback</h1>

<p>You can set the path dinamically using callback.</p>
<div class="highlight"><pre><span class="nt">&lt;div</span> <span class="na">data-path=</span><span class="s">"assets/images"</span><span class="nt">&gt;&lt;/div&gt;</span>
</pre></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">path</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
    <span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">getAttribute</span><span class="p">(</span><span class="s1">'data-path'</span><span class="p">);</span>
  <span class="p">}</span>
<span class="p">});</span>
</pre></div>
<h1>Star Off and Star On</h1>

<p>Changes the name of the star on and star off.</p>

<div id="star-off-and-star-on"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">starOff</span> <span class="o">:</span> <span class="s1">'off.png'</span><span class="p">,</span>
  <span class="nx">starOn</span>  <span class="o">:</span> <span class="s1">'on.png'</span>
<span class="p">});</span>
</pre></div>
<h1>Cancel</h1>

<p>Add a cancel button on the left side of the stars to cacel the <a href="#score">score</a>.<br>
Inside the <a href="#click">click</a> callback the argument code receives the value <code>null</code> when we click on cancel button.</p>

<div id="cancel"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span> <span class="nx">cancel</span><span class="o">:</span> <span class="kc">true</span> <span class="p">});</span>
</pre></div>
<h1>Cancel Hint</h1>

<p>Like the stars, the <a href="#cancel">cancel</a> button have a hint too, and you can change it.<br>
Stop the mouse over the cancel button to see:</p>

<div id="cancelHint"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">cancel</span>     <span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
  <span class="nx">cancelHint</span> <span class="o">:</span> <span class="s1">'My cancel hint!'</span>
<span class="p">});</span>
</pre></div>
<h1>Cancel Place</h1>

<p>Changes the <a href="#cancel">cancel</a> button to the right side.</p>

<div id="cancelPlace"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">cancel</span>      <span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
  <span class="nx">cancelPlace</span> <span class="o">:</span> <span class="s1">'right'</span>
<span class="p">});</span>
</pre></div>
<h1>Cancel off and Cancel On</h1>

<p>Changes the on and off icon of the <a href="#cancel">cancel</a> button.</p>

<div id="cancel-off-and-cancel-on"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">cancel</span>    <span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
  <span class="nx">cancelOff</span> <span class="o">:</span> <span class="s1">'cancel-off.png'</span><span class="p">,</span>
  <span class="nx">cancelOn</span>  <span class="o">:</span> <span class="s1">'cancel-on.png'</span>
<span class="p">});</span>
</pre></div>
<h1>Icon Range</h1>

<p>It's an array of objects where each one represents a custom icon.<br>
The <code>range</code> attribute is until wich position the icon will be displayed.<br>
The <code>on</code> attribute is the active icon.<br>
The <code>off</code> attribute is the inactive icon.</p>

<div id="iconRange"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">iconRange</span><span class="o">:</span> <span class="p">[</span>
    <span class="p">{</span> <span class="nx">range</span><span class="o">:</span> <span class="mi">1</span><span class="p">,</span> <span class="nx">on</span><span class="o">:</span> <span class="s1">'1.png'</span><span class="p">,</span> <span class="nx">off</span><span class="o">:</span> <span class="s1">'0.png'</span> <span class="p">},</span>
    <span class="p">{</span> <span class="nx">range</span><span class="o">:</span> <span class="mi">2</span><span class="p">,</span> <span class="nx">on</span><span class="o">:</span> <span class="s1">'2.png'</span><span class="p">,</span> <span class="nx">off</span><span class="o">:</span> <span class="s1">'0.png'</span> <span class="p">},</span>
    <span class="p">{</span> <span class="nx">range</span><span class="o">:</span> <span class="mi">3</span><span class="p">,</span> <span class="nx">on</span><span class="o">:</span> <span class="s1">'3.png'</span><span class="p">,</span> <span class="nx">off</span><span class="o">:</span> <span class="s1">'0.png'</span> <span class="p">},</span>
    <span class="p">{</span> <span class="nx">range</span><span class="o">:</span> <span class="mi">4</span><span class="p">,</span> <span class="nx">on</span><span class="o">:</span> <span class="s1">'4.png'</span><span class="p">,</span> <span class="nx">off</span><span class="o">:</span> <span class="s1">'0.png'</span> <span class="p">},</span>
    <span class="p">{</span> <span class="nx">range</span><span class="o">:</span> <span class="mi">5</span><span class="p">,</span> <span class="nx">on</span><span class="o">:</span> <span class="s1">'5.png'</span><span class="p">,</span> <span class="nx">off</span><span class="o">:</span> <span class="s1">'0.png'</span> <span class="p">}</span>
  <span class="p">]</span>
<span class="p">});</span>
</pre></div>
<p>You can use an interval of the same icon jumping some number.<br>
The <code>range</code> attribute must be in an ascending order.<br>
If the value <code>on</code> or <code>off</code> is omitted then the attribute <code>starOn</code> and <code>starOff</code> will be used.</p>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">starOff</span>   <span class="o">:</span> <span class="s1">'0.png'</span><span class="p">,</span>
  <span class="nx">iconRange</span> <span class="o">:</span> <span class="p">[</span>
    <span class="p">{</span> <span class="nx">range</span> <span class="o">:</span> <span class="mi">1</span><span class="p">,</span> <span class="nx">on</span><span class="o">:</span> <span class="s1">'1.png'</span> <span class="p">},</span>
    <span class="p">{</span> <span class="nx">range</span> <span class="o">:</span> <span class="mi">3</span><span class="p">,</span> <span class="nx">on</span><span class="o">:</span> <span class="s1">'3.png'</span> <span class="p">},</span>
    <span class="p">{</span> <span class="nx">range</span> <span class="o">:</span> <span class="mi">5</span><span class="p">,</span> <span class="nx">on</span><span class="o">:</span> <span class="s1">'5.png'</span> <span class="p">}</span>
  <span class="p">]</span>
<span class="p">});</span>
</pre></div>
<p>Now we have all off icons as <strong>0.png</strong>, icons 1 and 2 as <strong>1.png</strong>, icon 3 as <strong>3.png</strong> and icons 4 and 5 as <strong>5.png</strong>. </p>

<h1>Target</h1>

<p>Some place to display the <a href="#hints">hints</a> or the <a href="#cancelHint">cancelHint</a>.</p>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">cancel</span> <span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
  <span class="nx">target</span> <span class="o">:</span> <span class="s1">'#hint'</span>
<span class="p">});</span>
</pre></div>
<p>Your target can be a <code>div</code>.</p>

<div id="target-div"></div>

<div id="target-div-hint" class="input hint"></div>
<div class="highlight"><pre><span class="nt">&lt;div</span> <span class="na">id=</span><span class="s">"hint"</span><span class="nt">&gt;&lt;/div&gt;</span>
</pre></div>
<p>Your target can be a <code>text</code> field.</p>

<div id="target-text"></div>

<p><input id="target-text-hint" type="text" class="input hint"></p>
<div class="highlight"><pre><span class="nt">&lt;input</span> <span class="na">id=</span><span class="s">"hint"</span> <span class="na">type=</span><span class="s">"text"</span> <span class="nt">/&gt;</span>
</pre></div>
<p>Your target can be a <code>textarea</code>.</p>

<div id="target-textarea"></div>

<p><textarea id="target-textarea-hint" class="input hint"></textarea></p>
<div class="highlight"><pre><span class="nt">&lt;textarea</span> <span class="na">id=</span><span class="s">"hint"</span><span class="nt">&gt;&lt;/textarea&gt;</span>
</pre></div>
<p>Your target can be a <code>select</code>.</p>

<div id="target-select"></div>

<p><select id="target-select-hint" class="input hint"><br>
  <option value="">--</option>
<br>
  <option value="bad">bad</option>
<br>
  <option value="poor">poor</option>
<br>
  <option value="regular">regular</option>
<br>
  <option value="good">good</option>
<br>
  <option value="gorgeous">gorgeous</option>
<br>
</select></p>
<div class="highlight"><pre><span class="nt">&lt;select</span> <span class="na">id=</span><span class="s">"hint"</span><span class="nt">&gt;</span>
  <span class="nt">&lt;option</span> <span class="na">value=</span><span class="s">""</span><span class="nt">&gt;</span>--<span class="nt">&lt;/option&gt;</span>
  <span class="nt">&lt;option</span> <span class="na">value=</span><span class="s">"bad"</span><span class="nt">&gt;</span>bad<span class="nt">&lt;/option&gt;</span>
  <span class="nt">&lt;option</span> <span class="na">value=</span><span class="s">"poor"</span><span class="nt">&gt;</span>poor<span class="nt">&lt;/option&gt;</span>
  <span class="nt">&lt;option</span> <span class="na">value=</span><span class="s">"regular"</span><span class="nt">&gt;</span>regular<span class="nt">&lt;/option&gt;</span>
  <span class="nt">&lt;option</span> <span class="na">value=</span><span class="s">"good"</span><span class="nt">&gt;</span>good<span class="nt">&lt;/option&gt;</span>
  <span class="nt">&lt;option</span> <span class="na">value=</span><span class="s">"gorgeous"</span><span class="nt">&gt;</span>gorgeous<span class="nt">&lt;/option&gt;</span>
<span class="nt">&lt;/select&gt;</span>
</pre></div>
<h1>Target Type</h1>

<p>You have the option <code>hint</code> or <code>score</code> to chosse.<br>
You can choose to see the <a href="#score">score</a> instead the <a href="#hints">hints</a> using the value <code>score</code>.<br>
For the <a href="#cancel">cancel</a> button the value is empty.</p>

<div id="targetType"></div>

<div id="targetType-hint" class="input hint"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">cancel</span>     <span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
  <span class="nx">target</span>     <span class="o">:</span> <span class="s1">'#hint'</span><span class="p">,</span>
  <span class="nx">targetType</span> <span class="o">:</span> <span class="s1">'score'</span>
<span class="p">});</span>
</pre></div>
<h1>Target Keep</h1>

<p>If you want to keep the <a href="#score">score</a> into the hint box after you do the rating, turn on this option.</p>

<div id="targetKeep"></div>

<div id="targetKeep-hint" class="input hint"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">cancel</span>     <span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
  <span class="nx">target</span>     <span class="o">:</span> <span class="s1">'#hint'</span><span class="p">,</span>
  <span class="nx">targetKeep</span> <span class="o">:</span> <span class="kc">true</span>
<span class="p">});</span>
</pre></div>
<h1>Target Text</h1>

<p>Normally all <a href="#target-div">target</a> is keeped blank if you don't use the <a href="#targetKeep">targetKeep</a> option.<br>
If you want a default content you can use this option.</p>

<div id="targetText"></div>

<div id="targetText-hint" class="input hint"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">target</span>     <span class="o">:</span> <span class="s1">'#hint'</span><span class="p">,</span>
  <span class="nx">targetText</span> <span class="o">:</span> <span class="s1">'--'</span>
<span class="p">});</span>
</pre></div>
<h1>Target Format</h1>

<p>You can choose a template to be merged with your hints and displayed on <a href="#target-div">target</a>.</p>

<div id="targetFormat"></div>

<div id="targetFormat-hint" class="input hint"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">target</span>       <span class="o">:</span> <span class="s1">'#hint'</span><span class="p">,</span>
  <span class="nx">targetFormat</span> <span class="o">:</span> <span class="s1">'Rating: {score}'</span>
<span class="p">});</span>
</pre></div>
<h1>Target Score</h1>

<p>You can keep the score value inside the binded element by default or choose where to put it.<br>
If you change the score target, the default score field won't be created.<br>
It is not like <a href="#target-div">target</a> option for display purpose, it is the real current score data.</p>

<div id="targetScore"></div>

<p><input id="target-score" type="text" class="input hint"></p>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">targetScore</span><span class="o">:</span> <span class="s1">'#target'</span>
<span class="p">});</span>
</pre></div>
<h1>Mouseover</h1>

<p>You can handle the action on mouseover.<br>
The arguments is the same of the <a href="#click">click</a> callback.<br>
The options <a href="#target-div">target</a>, <a href="#targetFormat">targetFormat</a>, <a href="#targetKeep">targetKeep</a>, <a href="#targetText">targetText</a> and <a href="#targetType">targetType</a> are abstractions of this callback. You can do it by yourself.</p>

<div id="mouseover"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">mouseover</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">score</span><span class="p">,</span> <span class="nx">evt</span><span class="p">)</span> <span class="p">{</span>
    <span class="nx">alert</span><span class="p">(</span><span class="s1">'ID: '</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">id</span> <span class="o">+</span> <span class="s2">"\nscore: "</span> <span class="o">+</span> <span class="nx">score</span> <span class="o">+</span> <span class="s2">"\nevent: "</span> <span class="o">+</span> <span class="nx">evt</span><span class="p">);</span>
  <span class="p">}</span>
<span class="p">});</span>
</pre></div>
<h1>Mouseout</h1>

<p>You can handle the action on mouseout.<br>
The arguments is the same of the <a href="#mouseover">mouseover</a> callback.</p>

<div id="mouseout"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">mouseout</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">score</span><span class="p">,</span> <span class="nx">evt</span><span class="p">)</span> <span class="p">{</span>
    <span class="nx">alert</span><span class="p">(</span><span class="s1">'ID: '</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">id</span> <span class="o">+</span> <span class="s2">"\nscore: "</span> <span class="o">+</span> <span class="nx">score</span> <span class="o">+</span> <span class="s2">"\nevent: "</span> <span class="o">+</span> <span class="nx">evt</span><span class="p">);</span>
  <span class="p">}</span>
<span class="p">});</span>
</pre></div>
<h1>Precision</h1>

<p>You can get the right position of the cursor to get a precision <a href="#score">score</a>.<br>
The star is represented just as half and full star, but the <a href="#score">score</a> is saved with precision.<br>
When you enable this option the <a href="#half">half</a> options is automatically enabled and <a href="#targetType">targetType</a> is changed to <code>score</code>.</p>

<div id="precision"></div>

<div id="precision-hint" class="input hint"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'#precision'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">cancel</span>     <span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
  <span class="nx">cancelOff</span>  <span class="o">:</span> <span class="s1">'cancel-off.png'</span><span class="p">,</span>
  <span class="nx">cancelOn</span>   <span class="o">:</span> <span class="s1">'cancel-on.png'</span><span class="p">,</span>
  <span class="nx">path</span>       <span class="o">:</span> <span class="s1">'demo/images'</span><span class="p">,</span>
  <span class="nx">starHalf</span>   <span class="o">:</span> <span class="s1">'star-half.png'</span><span class="p">,</span>
  <span class="nx">starOff</span>    <span class="o">:</span> <span class="s1">'star-off.png'</span><span class="p">,</span>
  <span class="nx">starOn</span>     <span class="o">:</span> <span class="s1">'star-on.png'</span><span class="p">,</span>
  <span class="nx">target</span>     <span class="o">:</span> <span class="s1">'#precision-hint'</span><span class="p">,</span>
  <span class="nx">targetKeep</span> <span class="o">:</span> <span class="kc">true</span><span class="p">,</span>

  <span class="nx">precision</span>  <span class="o">:</span> <span class="kc">true</span>
<span class="p">});</span>
</pre></div>
<h1>Space</h1>

<p>You can take off the space between the star.</p>

<div id="space"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'#space'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span> <span class="nx">space</span><span class="o">:</span> <span class="kc">false</span> <span class="p">});</span>
</pre></div>
<h1>Single</h1>

<p>You can turn on just the mouseovered star instead all from the first until that one.</p>

<div id="single"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'#single'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span> <span class="nx">single</span><span class="o">:</span> <span class="kc">true</span> <span class="p">});</span>
</pre></div>
<h1>Star Type</h1>

<p>It lets you to change the star element type. Changing it from <code>img</code> to <code>i</code>, for example, gives you the change to use font instead image. There is a sample CSS (<code>demo/stylesheets/jquery.raty.css</code>) using a sample fonts (<code>demo/fonts/jquery.raty.[eot|svg|ttf|woff]</code>).</p>

<p>To be easier to use, we replace the dot (.) extension to hyphen (-), so you do not need to change the original names, just set the names to your fonts. We recommend you use the <a href="http://icomoon.io">Ico Moon</a> app to be possible to download only the icons you need and rename it.</p>

<div id="starType"></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">cancel</span>   <span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
  <span class="nx">half</span>     <span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
  <span class="nx">starType</span> <span class="o">:</span> <span class="s1">'i'</span>  
<span class="p">});</span>
</pre></div>
<h1>Changing the settings globally</h1>

<p>You can change any option mentioning the scope <code>$.fn.raty.defaults.OPTION = VALUE;</code>. It must be called before you bind the plugin.</p>
<div class="highlight"><pre><span class="nx">$</span><span class="p">.</span><span class="nx">fn</span><span class="p">.</span><span class="nx">raty</span><span class="p">.</span><span class="nx">defaults</span><span class="p">.</span><span class="nx">path</span> <span class="o">=</span> <span class="nx">assets</span><span class="p">;</span>
<span class="nx">$</span><span class="p">.</span><span class="nx">fn</span><span class="p">.</span><span class="nx">raty</span><span class="p">.</span><span class="nx">defaults</span><span class="p">.</span><span class="nx">cancel</span> <span class="o">=</span> <span class="kc">true</span><span class="p">;</span>
</pre></div>
<h1>Options</h1>
<div class="highlight"><pre><span class="nx">cancel</span><span class="o">:</span> <span class="kc">false</span>
</pre></div>
<p>Creates a cancel button to cancel the rating.</p>
<div class="highlight"><pre><span class="nx">cancelClass</span><span class="o">:</span> <span class="s1">'raty-cancel'</span>
</pre></div>
<p>Name of cancel's class.</p>
<div class="highlight"><pre><span class="nx">cancelHint</span><span class="o">:</span> <span class="s1">'Cancel this rating!'</span>
</pre></div>
<p>The cancel's button hint.</p>
<div class="highlight"><pre><span class="nx">cancelOff</span><span class="o">:</span> <span class="s1">'cancel-off.png'</span>
</pre></div>
<p>Icon used on active cancel.</p>
<div class="highlight"><pre><span class="nx">cancelOn</span><span class="o">:</span> <span class="s1">'cancel-on.png'</span>
</pre></div>
<p>Icon used inactive cancel.</p>
<div class="highlight"><pre><span class="nx">cancelPlace</span><span class="o">:</span> <span class="s1">'left'</span>
</pre></div>
<p>Cancel's button position.</p>
<div class="highlight"><pre><span class="nx">click</span><span class="o">:</span> <span class="kc">undefined</span>
</pre></div>
<p>Callback executed on rating click.</p>
<div class="highlight"><pre><span class="nx">half</span><span class="o">:</span> <span class="kc">false</span>
</pre></div>
<p>Enables half star selection.</p>
<div class="highlight"><pre><span class="nx">halfShow</span><span class="o">:</span> <span class="kc">true</span>
</pre></div>
<p>Enables half star display.</p>
<div class="highlight"><pre><span class="nx">hints</span><span class="o">:</span> <span class="p">[</span><span class="s1">'bad'</span><span class="p">,</span> <span class="s1">'poor'</span><span class="p">,</span> <span class="s1">'regular'</span><span class="p">,</span> <span class="s1">'good'</span><span class="p">,</span> <span class="s1">'gorgeous'</span><span class="p">]</span>
</pre></div>
<p>Hints used on each star.</p>
<div class="highlight"><pre><span class="nx">iconRange</span><span class="o">:</span> <span class="kc">undefined</span>
</pre></div>
<p>Object list with position and icon on and off to do a mixed icons.</p>
<div class="highlight"><pre><span class="nx">mouseout</span><span class="o">:</span> <span class="kc">undefined</span>
</pre></div>
<p>Callback executed on mouseout.</p>
<div class="highlight"><pre><span class="nx">mouseover</span><span class="o">:</span> <span class="kc">undefined</span>
</pre></div>
<p>Callback executed on mouseover.</p>
<div class="highlight"><pre><span class="nx">noRatedMsg</span><span class="o">:</span> <span class="s1">'Not rated yet!'</span>
</pre></div>
<p>Hint for no rated elements when it's <a href="#readOnly">readOnly</a>.</p>
<div class="highlight"><pre><span class="nx">number</span><span class="o">:</span> <span class="mi">5</span>
</pre></div>
<p>Number of stars that will be presented.</p>
<div class="highlight"><pre><span class="nx">numberMax</span><span class="o">:</span> <span class="mi">20</span>
</pre></div>
<p>Max of star the option <a href="#number">number</a> can creates.</p>
<div class="highlight"><pre><span class="nx">path</span><span class="o">:</span> <span class="kc">undefined</span>
</pre></div>
<p>A global locate where the icon will be looked.</p>
<div class="highlight"><pre><span class="nx">precision</span><span class="o">:</span> <span class="kc">false</span>
</pre></div>
<p>Enables the selection of a precision score.</p>
<div class="highlight"><pre><span class="nx">readOnly</span><span class="o">:</span> <span class="kc">false</span>
</pre></div>
<p>Turns the rating read-only.</p>
<div class="highlight"><pre><span class="nx">round</span><span class="o">:</span> <span class="p">{</span> <span class="nx">down</span><span class="o">:</span> <span class="p">.</span><span class="mi">25</span><span class="p">,</span> <span class="nx">full</span><span class="o">:</span> <span class="p">.</span><span class="mi">6</span><span class="p">,</span> <span class="nx">up</span><span class="o">:</span> <span class="p">.</span><span class="mi">76</span> <span class="p">}</span>
</pre></div>
<p>Included values attributes to do the <a href="#score">score</a> round math.</p>
<div class="highlight"><pre><span class="nx">score</span><span class="o">:</span> <span class="kc">undefined</span>
</pre></div>
<p>Initial rating.</p>
<div class="highlight"><pre><span class="nx">scoreName</span><span class="o">:</span> <span class="s1">'score'</span>
</pre></div>
<p>Name of the hidden field that holds the score value.</p>
<div class="highlight"><pre><span class="nx">single</span><span class="o">:</span> <span class="kc">false</span>
</pre></div>
<p>Enables just a single star selection.</p>
<div class="highlight"><pre><span class="nx">space</span><span class="o">:</span> <span class="kc">true</span>
</pre></div>
<p>Puts space between the icons.</p>
<div class="highlight"><pre><span class="nx">starHalf</span><span class="o">:</span> <span class="s1">'star-half.png'</span>
</pre></div>
<p>The name of the half star image.</p>
<div class="highlight"><pre><span class="nx">starOff</span><span class="o">:</span> <span class="s1">'star-off.png'</span>
</pre></div>
<p>Name of the star image off.</p>
<div class="highlight"><pre><span class="nx">starOn</span><span class="o">:</span> <span class="s1">'star-on.png'</span>
</pre></div>
<p>Name of the star image on.</p>
<div class="highlight"><pre><span class="nx">target</span><span class="o">:</span> <span class="kc">undefined</span>
</pre></div>
<p>Element selector where the <a href="#score">score</a> will be displayed.</p>
<div class="highlight"><pre><span class="nx">targetFormat</span><span class="o">:</span> <span class="s1">'{score}'</span>
</pre></div>
<p>Template to interpolate the <a href="#score">score</a> in.</p>
<div class="highlight"><pre><span class="nx">targetKeep</span><span class="o">:</span> <span class="kc">false</span>
</pre></div>
<p>If the last rating value will be keeped after mouseout.</p>
<div class="highlight"><pre><span class="nx">targetText</span><span class="o">:</span> <span class="s1">''</span>
</pre></div>
<p>Default text setted on <a href="target">target</a>.</p>
<div class="highlight"><pre><span class="nx">targetType</span><span class="o">:</span> <span class="s1">'hint'</span>
</pre></div>
<p>Option to choose if <a href="target">target</a> will receive hint or the score number.</p>

<h1>Functions</h1>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'#star'</span><span class="p">).</span><span class="nx">raty</span><span class="p">(</span><span class="s1">'score'</span><span class="p">);</span>
</pre></div>
<p>Get the current score. If there is no score then undefined will be returned.</p>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'#star'</span><span class="p">).</span><span class="nx">raty</span><span class="p">(</span><span class="s1">'score'</span><span class="p">,</span> <span class="nx">number</span><span class="p">);</span>
</pre></div>
<p>Set a score.</p>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'#star'</span><span class="p">).</span><span class="nx">raty</span><span class="p">(</span><span class="s1">'click'</span><span class="p">,</span> <span class="nx">number</span><span class="p">);</span>
</pre></div>
<p>Click on some star. It always call the click callback if it exists.</p>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'.star'</span><span class="p">).</span><span class="nx">raty</span><span class="p">(</span><span class="s1">'readOnly'</span><span class="p">,</span> <span class="kr">boolean</span><span class="p">);</span>
</pre></div>
<p>Change the read-only state.</p>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'#star'</span><span class="p">).</span><span class="nx">raty</span><span class="p">(</span><span class="s1">'cancel'</span><span class="p">,</span> <span class="kr">boolean</span><span class="p">);</span>
</pre></div>
<p>Cancel the rating. The boolean parameter tells if the click will be called or not. If you ommit it, false it will be.</p>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'#star'</span><span class="p">).</span><span class="nx">raty</span><span class="p">(</span><span class="s1">'reload'</span><span class="p">);</span>
</pre></div>
<p>Reload the rating with the same configuration it was binded.</p>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'#star'</span><span class="p">).</span><span class="nx">raty</span><span class="p">(</span><span class="s1">'set'</span><span class="p">,</span> <span class="p">{</span> <span class="nx">option</span><span class="o">:</span> <span class="nx">value</span> <span class="p">});</span>
</pre></div>
<p>Reset the rating with new configurations. Only options especified will be overrided.</p>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'#star'</span><span class="p">).</span><span class="nx">raty</span><span class="p">(</span><span class="s1">'destroy'</span><span class="p">);</span>
</pre></div>
<p>Destroy the bind and gives you the raw element before the bind.</p>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'#star'</span><span class="p">).</span><span class="nx">raty</span><span class="p">(</span><span class="s1">'move'</span><span class="p">,</span> <span class="nx">number</span><span class="p">);</span>
</pre></div>
<p>Move the mouse to the given score point position.</p>

<h1>Functions demo</h1>

<div class="functions">
  <div class="demo">
    <div id="functions"></div>
    <div id="functions-hint" class="input hint"></div>
  </div>

   <div class="item">
    <label for="score-function">score:</label>
    <input id="score-function" type="text" value="1" class="input">
    <a id="score-function-run" href="javascript:void(0);" title="score">run</a>
  </div>

  <div class="item">
    <label for="click-function">click:</label>
    <input id="click-function" type="text" value="2" class="input">
    <a id="click-function-run" href="javascript:void(0);" title="click">run</a>
  </div>

  <div class="item">
    <label for="readOnly-function">readOnly:</label>
    <input id="readOnly-function" type="text" value="true" class="input">
    <a id="readOnly-function-run" href="javascript:void(0);" title="readOnly">run</a>
  </div>

  <div class="item">
    <label for="cancel-function">cancel:</label>
    <input id="cancel-function" type="text" value="true" class="input">
    <a id="cancel-function-run" href="javascript:void(0);" title="cancel">run</a>
  </div>

  <div class="item">
    <label for="reload-function">reload:</label>
    <input id="reload-function" type="text" value="true" disabled class="input">
    <a id="reload-function-run" href="javascript:void(0);" title="reload">run</a>
  </div>

  <div class="item">
    <label for="get-score-function">score:</label>
    <input id="get-score-function" type="text" value="get" disabled class="input">
    <a id="get-score-function-run" href="javascript:void(0);" title="get score">run</a>
  </div>

  <div class="item">
    <label for="set-score-function">score:</label>
    <input id="set-score-function" type="text" value="3" class="input">
    <a id="set-score-function-run" href="javascript:void(0);" title="set score">run</a>
  </div>

  <div class="item">
    <label for="set-function">set:</label>
    <input id="set-function" type="text" value="{ cancel: false }" class="input">
    <a id="set-function-run" href="javascript:void(0);" title="set">run</a>
  </div>

  <div class="item">
    <label for="destroy-function">destroy:</label>
    <input id="destroy-function" type="text" value="true" disabled class="input">
    <a id="destroy-function-run" href="javascript:void(0);" title="destroy">run</a>
  </div>

  <div class="item">
    <label for="move-function">move:</label>
    <input id="move-function" type="text" value="3.7" class="input">
    <a id="move-function-run" href="javascript:void(0);" title="move">run</a>
  </div>
</div>

<h1>Tests</h1>

<p>This plugin is tested to work better. <a href="spec/run.html">Check it out!</a></p>

  </div>
</article>

<div class="share">
  <p>Share it!</p>

  <div class="twitter"><a href="https://twitter.com/intent/tweet?text=%22jQuery+Raty+-+A+Star+Rating+Plugin%22+%7E&amp;url=http%3A%2F%2Fwbotelhos.com%2Fraty&amp;via=wbotelhos" target="_blank" title="via Twitter"><i class="i-twitter"></i></a></div>
</div>


<section class="comments">
  <ol>
    <li id="comment-768" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/f8c18f2fb33110004b53df292ce7d566?d=mm" title="James">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">James</a>
      
      
      
    </header>

    <p>Hello,</p>

<p>I have created a very simple page. But it doesn't work with score attribute. I cannot find where the problem is. It will show 5 grey stars, but it should show 3 yellow stars. </p>
<div class="highlight"><pre><span class="nx">$</span><span class="p">.</span><span class="nx">fn</span><span class="p">.</span><span class="nx">raty</span><span class="p">.</span><span class="nx">defaults</span><span class="p">.</span><span class="nx">path</span> <span class="o">=</span> <span class="s1">'js/images'</span><span class="p">;</span>

<span class="nx">$</span><span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
    <span class="nx">$</span><span class="p">(</span><span class="s1">'#score'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span> <span class="nx">score</span><span class="o">:</span> <span class="mi">3</span> <span class="p">});</span>
<span class="p">});</span>
</pre></div>

    <footer>
      <a href="#comment-768" class="anchor" title="Link to this comment">#768</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-773" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>James,</p>

<p>The options <code>score</code> just do the rating.<br>
If you want to change the numbe of stars, use the option <code>number</code>.</p>


    <footer>
      <a href="#comment-773" class="anchor" title="Link to this comment">#773</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-767" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/a93750d68359fd4a954113b17b8d1d25?d=mm" title="Muhammad Saleh">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Muhammad Saleh</a>
      
      
      
    </header>

    <p>Quick tip for anyone who will use Raty in RTL application<br>
you will find that the half star icon will work properly in LTR as it will be flipped in RTL</p>

<p>To fix that don't create a new image just use this snippet:</p>
<div class="highlight"><pre><span class="nt">img</span><span class="o">[</span><span class="nt">src</span><span class="o">$=</span><span class="s2">"star-half.png"</span><span class="o">]</span><span class="p">{</span>
  <span class="o">-</span><span class="n">moz</span><span class="o">-</span><span class="n">transform</span><span class="o">:</span> <span class="n">scaleX</span><span class="p">(</span><span class="m">-1</span><span class="p">);</span>
    <span class="o">-</span><span class="n">webkit</span><span class="o">-</span><span class="n">transform</span><span class="o">:</span> <span class="n">scaleX</span><span class="p">(</span><span class="m">-1</span><span class="p">);</span>
    <span class="o">-</span><span class="n">o</span><span class="o">-</span><span class="n">transform</span><span class="o">:</span> <span class="n">scaleX</span><span class="p">(</span><span class="m">-1</span><span class="p">);</span>
    <span class="n">transform</span><span class="o">:</span> <span class="n">scaleX</span><span class="p">(</span><span class="m">-1</span><span class="p">);</span>
    <span class="o">-</span><span class="n">ms</span><span class="o">-</span><span class="n">filter</span><span class="o">:</span> <span class="n">fliph</span><span class="p">;</span> <span class="c">/*IE*/</span>
    <span class="n">filter</span><span class="o">:</span> <span class="n">fliph</span><span class="p">;</span> <span class="c">/*IE*/</span>
<span class="p">}</span>
</pre></div>
<p>The previous snippet will flip the image horizontally and it's cross browser.</p>

<p>Happy Coding!</p>


    <footer>
      <a href="#comment-767" class="anchor" title="Link to this comment">#767</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-772" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Muhammad Saleh,</p>

<p>Thanks! (:</p>


    <footer>
      <a href="#comment-772" class="anchor" title="Link to this comment">#772</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-765" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/fa61aa1d27df09f36563b340156ee5d1?d=mm" title="Naseer">
  </div>

  <div class="body">
    <header>
      <a href="http:learn.ecozlabs.com" target="_blank">Naseer</a>
      
      
      
    </header>

    <p>The click callback is not working with other options. My code is...</p>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="nb">document</span><span class="p">).</span><span class="nx">ready</span><span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
  <span class="nx">$</span><span class="p">(</span><span class="s1">'#star-&lt;?php echo $result['</span><span class="nx">ItemId</span><span class="s1">']; ?&gt;'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
    <span class="nx">readOnly</span>  <span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
    <span class="nx">score</span>     <span class="o">:</span> <span class="o">&lt;?</span><span class="nx">php</span> <span class="nx">echo</span> <span class="nx">$result</span><span class="p">[</span><span class="s1">'StarRating'</span><span class="p">];</span> <span class="o">?&gt;</span><span class="p">,</span>
    <span class="nx">hints</span>     <span class="o">:</span> <span class="p">[</span><span class="s1">'&lt;?php echo $result['</span><span class="nx">StarRating</span><span class="s1">']; ?&gt; out of 5 stars'</span><span class="p">,</span> <span class="s1">'&lt;?php echo $result['</span><span class="nx">StarRating</span><span class="s1">']; ?&gt; out of 5 stars'</span><span class="p">,</span> <span class="s1">'&lt;?php echo $result['</span><span class="nx">StarRating</span><span class="s1">']; ?&gt; out of 5 stars'</span><span class="p">,</span> <span class="s1">'&lt;?php echo $result['</span><span class="nx">StarRating</span><span class="s1">']; ?&gt; out of 5 stars'</span><span class="p">,</span> <span class="s1">'&lt;?php echo $result['</span><span class="nx">StarRating</span><span class="s1">']; ?&gt; out of 5 stars'</span><span class="p">],</span>
    <span class="nx">precision</span> <span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
    <span class="nx">click</span>     <span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
      <span class="nx">alert</span><span class="p">(</span><span class="s1">'score: '</span><span class="p">);</span>
    <span class="p">}</span>
  <span class="p">});</span>
<span class="p">});</span>
</pre></div>

    <footer>
      <a href="#comment-765" class="anchor" title="Link to this comment">#765</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-771" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Naseer,</p>

<p>First, when you have a doubt try to do a simpler example as possible.<br>
I don't know if some of your dynamic PHP variable is breaking something.<br>
Put some code on a live example on web then pass us the link.</p>


    <footer>
      <a href="#comment-771" class="anchor" title="Link to this comment">#771</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-764" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/39a3c4ee3b965521c0663bae4c8312b6?d=mm" title="Websun">
  </div>

  <div class="body">
    <header>
      <a href="http://websuntaraporn.com/" target="_blank">Websun</a>
      
      
      
    </header>

    <p>Hi,<br>
How can I start using this Raty? What else do I need other than jquery.js and jquery.raty.js?<br>
Sorry if this question looks silly.</p>


    <footer>
      <a href="#comment-764" class="anchor" title="Link to this comment">#764</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-770" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Websun,</p>

<p>The best way to know how to use Raty is check this demo page. But basically is this:</p>
<div class="highlight"><pre><span class="o">&lt;</span><span class="nx">script</span> <span class="nx">src</span><span class="o">=</span><span class="s2">"jquery.js"</span><span class="o">&gt;&lt;</span><span class="err">/script&gt;</span>
<span class="o">&lt;</span><span class="nx">script</span> <span class="nx">src</span><span class="o">=</span><span class="s2">"jquery.raty.js"</span><span class="o">&gt;&lt;</span><span class="err">/script&gt;</span>
</pre></div>
<div class="highlight"><pre><span class="nt">&lt;div&gt;&lt;/div&gt;</span>
</pre></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">();</span>
</pre></div>

    <footer>
      <a href="#comment-770" class="anchor" title="Link to this comment">#770</a>
      
      
    </footer>
  </div>

</li>
<li id="comment-766" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/a93750d68359fd4a954113b17b8d1d25?d=mm" title="Muhammad Saleh">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Muhammad Saleh</a>
      
      
      
    </header>

    <p>Websun,</p>

<p>You will also need the images for the<br>
star on<br>
star off<br>
star half</p>

<p>and you may skip the fonts ;) I did that</p>


    <footer>
      <a href="#comment-766" class="anchor" title="Link to this comment">#766</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-763" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/5ca422fa639219f682462cf9a95f687b?d=mm" title="Tom">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Tom</a>
      
      
      
    </header>

    <p>Is it possible to turn off the hints all together?<br>
When I pass null and it shows the 'score', it's not showing the fraction amount. I.e. a score of 3.5 for the hint is showing as 3. As such, I'd like to turn it off.</p>


    <footer>
      <a href="#comment-763" class="anchor" title="Link to this comment">#763</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-769" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Tom,</p>

<p>The version 2.7.0 will suport fraction hint.<br>
You can use the code from master to test it before the official release.</p>


    <footer>
      <a href="#comment-769" class="anchor" title="Link to this comment">#769</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-756" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/3150fd42a3442786a74afdae5c6a93d9?d=mm" title="anon">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">anon</a>
      
      
      
    </header>

    <p>Wow, I'm impressed. This is very nice</p>


    <footer>
      <a href="#comment-756" class="anchor" title="Link to this comment">#756</a>
      
      
    </footer>
  </div>

</li>
<li id="comment-754" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/ae4944c7330826ba11eb7b3d099e8e8b?d=mm" title="Waleed">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Waleed</a>
      
      
      
    </header>

    <p>Hi,</p>

<p>Is it possible to have a different image on hovering and different for a set rating. For example normally if i have a 3 star out of 5 star rating already set as the average user rating, so the 3 stars are yellow. What if while hovering over the stars i want to have orange stars showing your hover selection and when you select it say 4 star you set 4 stars yellow</p>

<p>thanks</p>


    <footer>
      <a href="#comment-754" class="anchor" title="Link to this comment">#754</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-762" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Waleed,</p>

<p>The <a href="#comment-752">same request</a> of Alex.<br>
Please, open an issue.</p>


    <footer>
      <a href="#comment-762" class="anchor" title="Link to this comment">#762</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-752" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/3f7f9ad4799ea029e522954e34c8c107?d=mm" title="alex">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">alex</a>
      
      
      
    </header>

    <p>Feature Request:</p>

<p>It would be nice if there were 4 states with 4 images. Currently this is used only for ON or OFF, so you can show only what the user has voted for before or what they are voting for now. Many sites have a need to show the average vote across all users as well. In that case you would need 4 states (OFF, ON-USER, ON-COMMUNITY, ON-BOTH). That way you can show both how this particular user voted as well as the average community vote.</p>


    <footer>
      <a href="#comment-752" class="anchor" title="Link to this comment">#752</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-761" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>alex,</p>

<p>It is a lot more code and I don't know if is a good idea.<br>
The plugins is big enough. But open an issue and lats watch the +1's.</p>


    <footer>
      <a href="#comment-761" class="anchor" title="Link to this comment">#761</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-751" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/dac5c46d3e520fc0109b91330e47d208?d=mm" title="Shawn">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Shawn</a>
      
      
      
    </header>

    <p>Washington,</p>

<p>First, thank you for writing and sharing this. It has saved me a lot of time and works great! </p>

<p>Second, I do have one small issue with cancel. It seems to work great in non-IE browsers (figures). In IE, it clears the rating when I mouseover the cancel image but as soon as I move my mouse off of the cancel image, my rating is reset to the original. Any ideas?</p>

<p>Thanks again, <br>
Shawn</p>


    <footer>
      <a href="#comment-751" class="anchor" title="Link to this comment">#751</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-760" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Shawn,</p>

<p>Could you open an issue?</p>


    <footer>
      <a href="#comment-760" class="anchor" title="Link to this comment">#760</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-749" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/4634c4710a9ee6f9002ce1d20228a9eb?d=mm" title="Elad">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Elad</a>
      
      
      
    </header>

    <p>Hi,</p>

<p>I am trying to change the to readonly onclick but it is not working.</p>

<p>Here is my code (my div's ID is starRating):</p>
<div class="highlight"><pre><span class="o">&lt;</span><span class="nx">script</span><span class="o">&gt;</span>
  <span class="nx">$</span><span class="p">(</span><span class="s1">'#starRating'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
    <span class="nx">click</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">score</span><span class="p">,</span> <span class="nx">evt</span><span class="p">)</span> <span class="p">{</span>
      <span class="nx">$</span><span class="p">(</span><span class="s1">'#starRating'</span><span class="p">).</span><span class="nx">raty</span><span class="p">(</span><span class="s1">'readOnly'</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
    <span class="p">}</span>
  <span class="p">});</span>
<span class="o">&lt;</span><span class="err">/script&gt;</span>
</pre></div>
<p>What am I doing wrong?</p>


    <footer>
      <a href="#comment-749" class="anchor" title="Link to this comment">#749</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-759" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Elad,</p>

<p>I run you code and it works.</p>


    <footer>
      <a href="#comment-759" class="anchor" title="Link to this comment">#759</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-747" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/5915c9422895966a496a8aa6e63f7010?d=mm" title="Teo Dragovic">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Teo Dragovic</a>
      
      
      
    </header>

    <p>Hi,</p>

<p>is it possible to extend plugin so it outputs <code>&lt;span&gt;</code> element with starOn and starOff as classes? I'm thinking of using icon font instead of images.</p>

<p>Thanks.</p>


    <footer>
      <a href="#comment-747" class="anchor" title="Link to this comment">#747</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-757" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Teo Dragovic,</p>

<p>Yes, use the version 2.6.0 with option <code>starType</code>.</p>


    <footer>
      <a href="#comment-757" class="anchor" title="Link to this comment">#757</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-721" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/a6054cbf21f02625367e3c88e1da0f8a?d=mm" title="Tatiana Perere">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Tatiana Perere</a>
      
      
      
    </header>

    <p>Hi!</p>

<p>I want only the star selected get marked. How can I do that?</p>

<p>Thank you!</p>


    <footer>
      <a href="#comment-721" class="anchor" title="Link to this comment">#721</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-744" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Tatiana Perere,</p>

<p>Use the options <code>single</code>.</p>


    <footer>
      <a href="#comment-744" class="anchor" title="Link to this comment">#744</a>
      
      
    </footer>
  </div>

</li>
<li id="comment-722" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/a6054cbf21f02625367e3c88e1da0f8a?d=mm" title="Tatiana Perere">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Tatiana Perere</a>
      
      
      
    </header>

    <p>Did it changing the js lib.</p>

<p>I suggest to add this feature as an option. Very easy to do it.</p>

<p>Valeu!</p>


    <footer>
      <a href="#comment-722" class="anchor" title="Link to this comment">#722</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-745" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Tatiana Perere,</p>

<p>Good job, but it is a option called <code>single</code>.<br>
But the next time a pull request is a polite thanks.</p>


    <footer>
      <a href="#comment-745" class="anchor" title="Link to this comment">#745</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-746" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/a6054cbf21f02625367e3c88e1da0f8a?d=mm" title="Tatiana Perere">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Tatiana Perere</a>
      
      
      
    </header>

    <p>Washington Botelho,</p>

<p>Hey man, I'm sorry.</p>

<p>I undo those changes and I use the single=true option now.</p>

<p>But the mouseOver behavior was bothering me, so I added  the code on</p>
<div class="highlight"><pre><span class="nx">_bindOver</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span> <span class="o">:</span>
<span class="k">else</span> <span class="p">{</span>
  <span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="nx">self</span><span class="p">.</span><span class="nx">opt</span><span class="p">.</span><span class="nx">single</span><span class="p">){</span>
    <span class="nx">methods</span><span class="p">.</span><span class="nx">_fill</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="nx">self</span><span class="p">,</span> <span class="nx">score</span><span class="p">);</span>
  <span class="p">}</span>
<span class="p">}</span>
</pre></div>
<p>and to have the mark action onclick I added the same mouseOut bind to onClick bind:</p>
<div class="highlight"><pre><span class="k">if</span><span class="p">(</span><span class="nx">self</span><span class="p">.</span><span class="nx">opt</span><span class="p">.</span><span class="nx">single</span><span class="p">){</span>
  <span class="nx">$</span><span class="p">(</span><span class="k">this</span><span class="p">).</span><span class="nx">on</span><span class="p">(</span><span class="s1">'click.raty'</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">evt</span><span class="p">)</span> <span class="p">{</span>
    <span class="kd">var</span> <span class="nx">score</span> <span class="o">=</span> <span class="nb">parseFloat</span><span class="p">(</span><span class="nx">self</span><span class="p">.</span><span class="nx">score</span><span class="p">.</span><span class="nx">val</span><span class="p">())</span> <span class="o">||</span> <span class="kc">undefined</span><span class="p">;</span>

      <span class="nx">methods</span><span class="p">.</span><span class="nx">_apply</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="nx">self</span><span class="p">,</span> <span class="nx">score</span><span class="p">);</span>
      <span class="nx">methods</span><span class="p">.</span><span class="nx">_target</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="nx">self</span><span class="p">,</span> <span class="nx">score</span><span class="p">,</span> <span class="nx">evt</span><span class="p">);</span>

      <span class="k">if</span> <span class="p">(</span><span class="nx">self</span><span class="p">.</span><span class="nx">opt</span><span class="p">.</span><span class="nx">mouseout</span><span class="p">)</span> <span class="p">{</span>
        <span class="nx">self</span><span class="p">.</span><span class="nx">opt</span><span class="p">.</span><span class="nx">mouseout</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="nx">self</span><span class="p">,</span> <span class="nx">score</span><span class="p">,</span> <span class="nx">evt</span><span class="p">);</span>
      <span class="p">}</span>
    <span class="p">});</span>
<span class="p">}</span>
</pre></div>
<p>Now I have a very different behavior when using SINGLE.</p>

<p>Cheers!</p>


    <footer>
      <a href="#comment-746" class="anchor" title="Link to this comment">#746</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>

    </ol>
</li>

    </ol>
</li>
<li id="comment-719" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/728d40265575c53e45fa0778c47ecbbb?d=mm" title="Hussaim">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Hussaim</a>
      
      
      
    </header>

    <p>Can i change name of <code>&lt;input type="hidden"&gt;</code>?<br>
i want to assign parent div name to hidden element name</p>
<div class="highlight"><pre><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">'star'</span> <span class="na">name=</span><span class="s">n</span><span class="nt">&gt;</span>
..
..
..

  <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">'hidden'</span> <span class="na">name=</span><span class="s">parentName</span><span class="nt">&gt;</span>
<span class="nt">&lt;div/&gt;</span> 
</pre></div>

    <footer>
      <a href="#comment-719" class="anchor" title="Link to this comment">#719</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-743" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Hussaim,</p>

<p>Yes, use the option <code>scoreName</code>.</p>


    <footer>
      <a href="#comment-743" class="anchor" title="Link to this comment">#743</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-718" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/2eb9f371561aaba13ed4ded358e6a136?d=mm" title="florin">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">florin</a>
      
      
      
    </header>

    <p>Same question as Jing bellow :)</p>


    <footer>
      <a href="#comment-718" class="anchor" title="Link to this comment">#718</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-742" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>florin,</p>

<p>Same answer! :)</p>


    <footer>
      <a href="#comment-742" class="anchor" title="Link to this comment">#742</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-717" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/618067e2cb0e4bf960fa14b98aaf584f?d=mm" title="Jing">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Jing</a>
      
      
      
    </header>

    <p>Hi!<br>
I hope after clicking the star become read-only.<br>
How should do?<br>
Thanks in advance!</p>


    <footer>
      <a href="#comment-717" class="anchor" title="Link to this comment">#717</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-741" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Jing,</p>

<p>Inside <code>click</code> callback, calls the <code>readOnly</code> function.</p>


    <footer>
      <a href="#comment-741" class="anchor" title="Link to this comment">#741</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-715" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/a0ea23054a1e071bc746b7fa0b8d4c04?d=mm" title="Joey">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Joey</a>
      
      
      
    </header>

    <p>First, thanks for the plugin!</p>

<p>I deployed the plugin, but was having trouble with the validation of the rating.  I wanted to use my own element to house the score.  I used the scoreName &amp; targetScore, but the plugin always creates an element with the same name as the one I created.  Is there a way to tell the plugin to no generate an element?</p>

<p>Thanks!</p>


    <footer>
      <a href="#comment-715" class="anchor" title="Link to this comment">#715</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-740" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Joey,</p>

<p>The score element is create only if you don't provide a valid (existent) target score: <a href="https://github.com/wbotelhos/blob/master/../lib/jquery.raty.js#L215">https://github.com/wbotelhos/blob/master/../lib/jquery.raty.js#L215</a></p>


    <footer>
      <a href="#comment-740" class="anchor" title="Link to this comment">#740</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-714" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/f5c79c7fc5770a01431171929fa11e6c?d=mm" title="cesar">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">cesar</a>
      
      
      
    </header>

    <p>when i write the html code with jquery, a click function doesn't work</p>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s2">"#div1"</span><span class="p">).</span><span class="nx">html</span><span class="p">(</span><span class="s2">"&lt;div id='star' data-score='1'&gt;&lt;/div&gt;"</span><span class="p">);</span>
</pre></div>
<p>help me please and excusa me, a dont speak english :D</p>


    <footer>
      <a href="#comment-714" class="anchor" title="Link to this comment">#714</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-739" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>cesar,</p>

<p>It should be work, since you bind the Raty after the HTML is on body.<br>
Try:</p>
<div class="highlight"><pre><span class="kd">var</span> <span class="nx">star</span> <span class="o">=</span> <span class="nx">$</span><span class="p">(</span><span class="s1">'&lt;div id="star" data-score="1"&gt;&lt;/div&gt;'</span><span class="p">).</span><span class="nx">appendTo</span><span class="p">(</span><span class="s1">'#div1'</span><span class="p">);</span>

<span class="nx">star</span><span class="p">.</span><span class="nx">raty</span><span class="p">();</span>
</pre></div>

    <footer>
      <a href="#comment-739" class="anchor" title="Link to this comment">#739</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-713" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/8a7eb9231635fc348203a6a5e398fef5?d=mm" title="rent-aroom">
  </div>

  <div class="body">
    <header>
      <a href="http://www.rent-aroom.com/rate-our-service" target="_blank">rent-aroom</a>
      
      
      
    </header>

    <p>Thank you for the script. Looking great :-)</p>

<p><a href="http://www.rent-aroom.com/rate-our-service">http://www.rent-aroom.com/rate-our-service</a></p>


    <footer>
      <a href="#comment-713" class="anchor" title="Link to this comment">#713</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-738" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>rent-aroom,</p>

<p>Good to hear that.<br>
Great job and thanks! (:</p>


    <footer>
      <a href="#comment-738" class="anchor" title="Link to this comment">#738</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-710" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/daa3ff6d45f9e36144996cef997b52a5?d=mm" title="John Paul">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">John Paul</a>
      
      
      
    </header>

    <p>Is there any way to stop the user from submitting another rating after they have already sent one? I am recording these to database and want it to be a one time thing per user. Could I set it to read only after my POST?</p>


    <footer>
      <a href="#comment-710" class="anchor" title="Link to this comment">#710</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-737" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>John Paul,</p>

<p>You can, but it is just JS, Raty can't do it for you.<br>
You can set it to read-only the time you want, but the time and how you want to do this, is up to you.</p>


    <footer>
      <a href="#comment-737" class="anchor" title="Link to this comment">#737</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-706" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/ba7b758a7f5ffafb168fce7e02a5420a?d=mm" title="Josรฉ Leite">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Josรฉ Leite</a>
      
      
      
    </header>

    <p>Washington Botelho,</p>

<p>I wrote the following code:</p>
<div class="highlight"><pre><span class="p">{{</span><span class="k">if</span> <span class="nx">comments</span><span class="o">:</span><span class="p">}}</span>
  <span class="p">{{</span><span class="k">for</span> <span class="nx">idx</span><span class="p">,</span> <span class="nx">comment</span> <span class="k">in</span> <span class="nx">enumerate</span><span class="p">(</span><span class="nx">comments</span><span class="p">)</span><span class="o">:</span><span class="p">}}</span>
    <span class="o">&lt;</span><span class="nx">div</span> <span class="kr">class</span><span class="o">=</span><span class="s2">"badge badge-warning"</span> <span class="nx">id</span><span class="o">=</span><span class="s2">"star{{idx}}"</span><span class="o">&gt;</span><span class="p">{{</span><span class="o">=</span><span class="nx">comment</span><span class="p">.</span><span class="nx">rating</span><span class="p">}}</span><span class="o">&lt;</span><span class="err">/div&gt;</span>

    <span class="o">&lt;</span><span class="nx">script</span><span class="o">&gt;</span>
      <span class="nx">$</span><span class="p">(</span><span class="s1">'#star{{idx}}'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span> 
        <span class="nx">numberMax</span> <span class="o">:</span> <span class="mi">10</span><span class="p">,</span>
        <span class="nx">readOnly</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span> 
        <span class="nx">score</span><span class="o">:</span> <span class="p">{{</span><span class="o">=</span><span class="nx">comment</span><span class="p">.</span><span class="nx">rating</span><span class="p">}}</span> 
      <span class="p">});</span>
    <span class="o">&lt;</span><span class="err">/script&gt;</span>
  <span class="p">{{</span><span class="nx">pass</span><span class="p">}}</span>
<span class="p">{{</span><span class="nx">pass</span><span class="p">}}</span>
</pre></div>

    <footer>
      <a href="#comment-706" class="anchor" title="Link to this comment">#706</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-730" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Josรฉ Leite,</p>

<p>Build your HTML elements first, then after apply Raty using class and getting the rating from data attribute, like so:</p>
<div class="highlight"><pre><span class="nt">&lt;div</span> <span class="na">data-rating=</span><span class="s">"{{= comment.rating}}"</span> <span class="na">class=</span><span class="s">"badge badge-warning"</span><span class="nt">&gt;</span>{{= comment.rating}}<span class="nt">&lt;/div&gt;</span>
</pre></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'.badge'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">score</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
    <span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">getAttribute</span><span class="p">(</span><span class="s1">'data-rating'</span><span class="p">);</span>
  <span class="p">}</span>
<span class="p">});</span>
</pre></div>

    <footer>
      <a href="#comment-730" class="anchor" title="Link to this comment">#730</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-704" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/762d76f623aa73837652480d20126008?d=mm" title="Swagata">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Swagata</a>
      
      
      
    </header>

    <p>I tried the mouse over but it did not work. on mouse over call back , I was setting the score in a hidden variable , to get it's value on form post.</p>


    <footer>
      <a href="#comment-704" class="anchor" title="Link to this comment">#704</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-736" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Swagata,</p>

<p>Raty already has a hidden field called <code>score</code> by default the you can change.<br>
Your you can use the new option <code>scoreTarget</code> and decide to where send the score.<br>
Your you can use your ideia and copy the score for wherever you want.</p>


    <footer>
      <a href="#comment-736" class="anchor" title="Link to this comment">#736</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-701" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9906126bc5f8e48554f27b3002c0cadd?d=mm" title="Marc Stein">
  </div>

  <div class="body">
    <header>
      <a href="http://recippia.herokuapp.com/test.html" target="_blank">Marc Stein</a>
      
      
      
    </header>

    <p>Hi Washington,</p>

<p>I'm having a styling issue with Raty that I've been unable to solve.</p>

<p>If you take a look at <a href="http://recippia.herokuapp.com/test.html">http://recippia.herokuapp.com/test.html</a> you can see that the stars stack vertically rather than displaying inline. I'v tried overriding the img tag formatting in style.css but this doesn't seem to do the trick. Any thoughts as to how to resolve this?</p>

<p>Many thanks in advance,</p>

<p>Marc</p>

<p>Great plugin, BTW!</p>


    <footer>
      <a href="#comment-701" class="anchor" title="Link to this comment">#701</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-735" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Marc Stein,</p>

<p>I could not to see the problem.<br>
But you can set <code>space: off</code> to avoid empty space and then manipulate the images.</p>


    <footer>
      <a href="#comment-735" class="anchor" title="Link to this comment">#735</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-696" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/7ea8556715a4d33e151bcf1437cc2568?d=mm" title="Surjit Sidhu">
  </div>

  <div class="body">
    <header>
      <a href="http://surjitsidhu.com" target="_blank">Surjit Sidhu</a>
      
      
      
    </header>

    <p>I want to display "based on x reviews" after stars. how can do this ?<br>
i tried to modify js function, but does not find exact line to change</p>


    <footer>
      <a href="#comment-696" class="anchor" title="Link to this comment">#696</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-734" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Surjit Sidhu,</p>

<p>You need to use the <a href="#target-div">target</a> options.<br>
But if you want to display the number of reviews, you should keep it on database and display it for your own.</p>


    <footer>
      <a href="#comment-734" class="anchor" title="Link to this comment">#734</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-694" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/c2a125bf6a22088c271ae68a2029f147?d=mm" title="sudarshan">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">sudarshan</a>
      
      
      
    </header>

    <p>Hello sir,  nice work.<br>
I have one doubt I am not getting img of stars when I used it in Codeigniter project. Can you tell me where can I provide Base url for img folder??<br>
Thanks.</p>


    <footer>
      <a href="#comment-694" class="anchor" title="Link to this comment">#694</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-726" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>sudarshan,</p>

<p>The base URL is up to you and your framework.<br>
Raty can't provide it for you, sorry.</p>


    <footer>
      <a href="#comment-726" class="anchor" title="Link to this comment">#726</a>
      
      
    </footer>
  </div>

</li>
<li id="comment-695" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/08cdeee40a7c2a05cd09f10e6d18f7e0?d=mm" title="Vlad">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Vlad</a>
      
      
      
    </header>

    <p>sudarshan, </p>

<p>Had the same issue, </p>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'#star'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">path</span><span class="o">:</span> <span class="s1">'img/'</span><span class="p">,</span>
<span class="p">});</span>
</pre></div>
<p>if that doesnt work try,</p>
<div class="highlight"><pre><span class="nx">jQuery</span><span class="p">(</span><span class="kd">function</span><span class="p">(</span><span class="nx">$</span><span class="p">)</span> <span class="p">{</span>
  <span class="nx">$</span><span class="p">(</span><span class="s1">'#star'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
      <span class="nx">path</span><span class="o">:</span> <span class="s1">'img/'</span><span class="p">,</span>
  <span class="p">});</span>
<span class="p">});</span>
</pre></div>

    <footer>
      <a href="#comment-695" class="anchor" title="Link to this comment">#695</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-727" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Vlad,</p>

<p>It could work, but the case is not the whole Raty, just the images.</p>


    <footer>
      <a href="#comment-727" class="anchor" title="Link to this comment">#727</a>
      
      
    </footer>
  </div>

</li>
<li id="comment-703" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9041010388ef45fd147e202b733f616e?d=mm" title="Malek">
  </div>

  <div class="body">
    <header>
      <a href="http://sweettutos.wordpress.com" target="_blank">Malek</a>
      
      
      
    </header>

    <p>the slash is added programmatically I noticed.<br>
So just 'img' and the stars assets should be loaded correctly. Vlad,</p>


    <footer>
      <a href="#comment-703" class="anchor" title="Link to this comment">#703</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-728" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Malek,</p>

<p>It was fixed on version 2.5.1: "The path always was prepend avoiding absolute or different path for each icon."</p>


    <footer>
      <a href="#comment-728" class="anchor" title="Link to this comment">#728</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>

    </ol>
</li>

    </ol>
</li>
<li id="comment-692" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/24c63b5f5e5be52f7934a5fa10535221?d=mm" title="Cabel">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Cabel</a>
      
      
      
    </header>

    <p>Any easy way to make the stars smaller? Other than that, what a great plugin, keep up the great work. </p>
<div class="highlight"><pre><span class="nx">$</span><span class="p">.</span><span class="nx">fn</span><span class="p">.</span><span class="nx">raty</span><span class="p">.</span><span class="nx">defaults</span><span class="p">.</span><span class="nx">path</span> <span class="o">=</span> <span class="s1">'/images'</span><span class="p">;</span>

<span class="nx">$</span><span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
  <span class="nx">$</span><span class="p">(</span><span class="s1">'#default'</span><span class="p">).</span><span class="nx">raty</span><span class="p">();</span> 

  <span class="nx">$</span><span class="p">(</span><span class="s1">'.stars'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span> <span class="nx">readOnly</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span> <span class="nx">score</span><span class="o">:</span> <span class="mi">1</span><span class="p">,</span> <span class="nx">size</span><span class="o">:</span> <span class="mi">12</span> <span class="p">});</span>
<span class="p">});</span>
</pre></div>

    <footer>
      <a href="#comment-692" class="anchor" title="Link to this comment">#692</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-729" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Cabel,</p>

<p>You can set a default size for all intances.<br>
But the only way is set the <code>size</code> to be possible calculate the right width.</p>


    <footer>
      <a href="#comment-729" class="anchor" title="Link to this comment">#729</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-691" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/0788403895239b40d68eb9c9f43cf00c?d=mm" title="ISEE">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">ISEE</a>
      
      
      
    </header>

    <p>Hi.<br>
Now, we can get the score from the callbcak function when the raty was initialized, suck as:</p>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'div'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">click</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">score</span><span class="p">,</span> <span class="nx">evt</span><span class="p">)</span> <span class="p">{</span>
    <span class="nx">alert</span><span class="p">(</span><span class="s1">'score: '</span> <span class="o">+</span> <span class="nx">score</span><span class="p">);</span>
  <span class="p">}</span>
<span class="p">});</span>
</pre></div>
<p>but can we get the score in the other function?</p>


    <footer>
      <a href="#comment-691" class="anchor" title="Link to this comment">#691</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-725" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>ISEE,</p>

<p>Get the score when it is initialized is on <code>score</code> option via <code>function() { return 1; }</code>, not on <code>click</code>.<br>
On <code>click</code> you get the score choosed, like on <code>mouseover</code>and <code>mouseout</code></p>


    <footer>
      <a href="#comment-725" class="anchor" title="Link to this comment">#725</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-690" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/b6367e697ad8fa8010315bb21e49fe6a?d=mm" title="Darren Teng">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Darren Teng</a>
      
      
      
    </header>

    <p>Hi Washington, can I set my own title for each star, such as <code>'good' =&gt; 'Strongly agree'</code>, <code>'bad' =&gt; 'Strongly disagree'</code>?</p>

<p>Thanks for your great work!</p>


    <footer>
      <a href="#comment-690" class="anchor" title="Link to this comment">#690</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-723" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Darren Teng,</p>

<p>Yes, you have the options <code>hints</code> to do that.</p>


    <footer>
      <a href="#comment-723" class="anchor" title="Link to this comment">#723</a>
      
      
    </footer>
  </div>

</li>
<li id="comment-712" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/26a67c4df92e642a577e88784285f2c1?d=mm" title="Jirka Kyncl">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Jirka Kyncl</a>
      
      
      
    </header>

    <p>I found it now :)<br>
you can set parameter hints.</p>

<p>Ex:</p>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="k">this</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">number</span><span class="o">:</span> <span class="mi">5</span><span class="p">,</span>
  <span class="nx">score</span><span class="o">:</span> <span class="nx">$</span><span class="p">(</span><span class="k">this</span><span class="p">).</span><span class="nx">data</span><span class="p">(</span><span class="s1">'rate'</span><span class="p">),</span>
    <span class="nx">path</span><span class="o">:</span> <span class="s1">'js/img'</span><span class="p">,</span>
    <span class="nx">readOnly</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
    <span class="nx">noRatedMsg</span> <span class="o">:</span> <span class="s2">"Very very bad woman!"</span><span class="p">,</span>
    <span class="nx">hints</span><span class="o">:</span> <span class="p">[</span><span class="s2">"somthing"</span><span class="p">,</span> <span class="s2">"bless"</span><span class="p">,</span> <span class="s2">"Monitor"</span><span class="p">,</span> <span class="mi">4</span><span class="p">,</span> <span class="s2">"evaluation"</span><span class="p">]</span>
<span class="p">});</span>
</pre></div>

    <footer>
      <a href="#comment-712" class="anchor" title="Link to this comment">#712</a>
      
      
    </footer>
  </div>

</li>
<li id="comment-711" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/26a67c4df92e642a577e88784285f2c1?d=mm" title="Jirka Kyncl">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Jirka Kyncl</a>
      
      
      
    </header>

    <p>Hi, you can change it in source code. In hints array. I didn't found better solution.</p>


    <footer>
      <a href="#comment-711" class="anchor" title="Link to this comment">#711</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-724" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Jirka Kyncl,</p>

<p>The better solution is just override the parameter <code>hints</code>.</p>


    <footer>
      <a href="#comment-724" class="anchor" title="Link to this comment">#724</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>

    </ol>
</li>
<li id="comment-687" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/c44a4af00544c70a6841006998c6b795?d=mm" title="Guilherme Duailibe">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Guilherme Duailibe</a>
      
      
      
    </header>

    <p>Excelente plugin! Estou usando. Obrigado!</p>


    <footer>
      <a href="#comment-687" class="anchor" title="Link to this comment">#687</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-689" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Guilherme Duailibe,</p>

<p>Thank you! (:</p>


    <footer>
      <a href="#comment-689" class="anchor" title="Link to this comment">#689</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-686" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/c8c6efe450847ee184720928b6e69654?d=mm" title="Daniel Better">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Daniel Better</a>
      
      
      
    </header>

    <p>Hi Washington, first of all, great plugin, gj!<br>
Secondly, is there a way to enlarge the stars even more then 24px as seen here? </p>

<p>Regards, Daniel.</p>


    <footer>
      <a href="#comment-686" class="anchor" title="Link to this comment">#686</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-688" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Daniel Better,</p>

<p>Yes, just use your new icon and set the value of it as px on <code>size</code> property.</p>


    <footer>
      <a href="#comment-688" class="anchor" title="Link to this comment">#688</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-679" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/4653dd9471188ec0936b4e8013ad8fc4?d=mm" title="Nishit">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Nishit</a>
      
      
      
    </header>

    <p>Hi Washington,</p>

<p>I would like to thank you for this plugin. It works flawlessly. Great work.</p>

<p>Regards.</p>


    <footer>
      <a href="#comment-679" class="anchor" title="Link to this comment">#679</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-680" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Nishit,</p>

<p>Thanks man! (:</p>


    <footer>
      <a href="#comment-680" class="anchor" title="Link to this comment">#680</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-676" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/1fca03d51d167c31f2079aae85becf90?d=mm" title="Brian">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Brian</a>
      
      
      
    </header>

    <p>I have a need for multiple ratings on a page. For example, individual ratings for things such as "Price," "Value" and "Quality." Is there a way to specify scoreName for each instance of a rating? Excellent plugin, btw.</p>


    <footer>
      <a href="#comment-676" class="anchor" title="Link to this comment">#676</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-678" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/1fca03d51d167c31f2079aae85becf90?d=mm" title="Brian">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Brian</a>
      
      
      
    </header>

    <p>In the init function, I have changed:</p>
<div class="highlight"><pre><span class="k">this</span><span class="p">.</span><span class="nx">opt</span> <span class="o">=</span> <span class="nx">$</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="kc">true</span><span class="p">,</span> <span class="p">{},</span> <span class="nx">$</span><span class="p">.</span><span class="nx">fn</span><span class="p">.</span><span class="nx">raty</span><span class="p">.</span><span class="nx">defaults</span><span class="p">,</span> <span class="nx">settings</span><span class="p">);</span>
</pre></div>
<p>to</p>
<div class="highlight"><pre><span class="k">this</span><span class="p">.</span><span class="nx">opt</span> <span class="o">=</span> <span class="nx">$</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="kc">true</span><span class="p">,</span> <span class="p">{},</span> <span class="nx">$</span><span class="p">.</span><span class="nx">fn</span><span class="p">.</span><span class="nx">raty</span><span class="p">.</span><span class="nx">defaults</span><span class="p">,</span> <span class="nx">settings</span><span class="p">,</span> <span class="nx">$</span><span class="p">(</span><span class="k">this</span><span class="p">).</span><span class="nx">data</span><span class="p">());</span>
</pre></div>
<p>This allows me to pass instance variables via the div. Example:</p>
<div class="highlight"><pre><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"my-rating"</span> <span class="na">data-score-name=</span><span class="s">"rating[quality]"</span><span class="nt">&gt;&lt;/div&gt;</span>
</pre></div>
<p>Perhaps a consideration to add to the master?</p>


    <footer>
      <a href="#comment-678" class="anchor" title="Link to this comment">#678</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-684" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Brian,</p>

<p>Could you open a issue to create a <code>scoreName</code> callback?<br>
This way we can pass a function to <code>scoreName</code> and receive it via data or whatever.</p>

<p>Thanks.</p>


    <footer>
      <a href="#comment-684" class="anchor" title="Link to this comment">#684</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>

    </ol>
</li>
<li id="comment-674" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/ef48b31893ff7bc1e1f842ff2a9ef677?d=mm" title="Istvan Szollosi">
  </div>

  <div class="body">
    <header>
      <a href="http://i-sty.comule.com" target="_blank">Istvan Szollosi</a>
      
      
      
    </header>

    <p>Hi,<br>
I tried to use your plugin in my blog/web-shop but I got these errors:</p>
<div class="highlight"><pre><span class="nx">Uncaught</span> <span class="nx">TypeError</span><span class="o">:</span> <span class="nb">Object</span> <span class="err">#</span><span class="o">&lt;</span><span class="nb">Object</span><span class="o">&gt;</span> <span class="nx">has</span> <span class="nx">no</span> <span class="nx">method</span> <span class="s1">'on'</span> <span class="nx">jquery</span><span class="p">.</span><span class="nx">raty</span><span class="p">.</span><span class="nx">min</span><span class="p">.</span><span class="nx">js</span><span class="o">:</span><span class="mi">12</span>
<span class="nx">a</span><span class="p">.</span><span class="nx">_bindClick</span> <span class="nx">jquery</span><span class="p">.</span><span class="nx">raty</span><span class="p">.</span><span class="nx">min</span><span class="p">.</span><span class="nx">js</span><span class="o">:</span><span class="mi">12</span>
<span class="nx">a</span><span class="p">.</span><span class="nx">_binds</span> <span class="nx">jquery</span><span class="p">.</span><span class="nx">raty</span><span class="p">.</span><span class="nx">min</span><span class="p">.</span><span class="nx">js</span><span class="o">:</span><span class="mi">12</span>
<span class="p">(</span><span class="nx">anonymous</span> <span class="kd">function</span><span class="p">)</span> <span class="nx">jquery</span><span class="p">.</span><span class="nx">raty</span><span class="p">.</span><span class="nx">min</span><span class="p">.</span><span class="nx">js</span><span class="o">:</span><span class="mi">12</span>
<span class="nx">E</span><span class="p">.</span><span class="nx">extend</span><span class="p">.</span><span class="nx">each</span> <span class="nx">VM4322</span><span class="o">:</span><span class="mi">1</span>
<span class="nx">E</span><span class="p">.</span><span class="nx">fn</span><span class="p">.</span><span class="nx">E</span><span class="p">.</span><span class="nx">each</span> <span class="nx">VM4322</span><span class="o">:</span><span class="mi">1</span>
<span class="nx">a</span><span class="p">.</span><span class="nx">init</span> <span class="nx">jquery</span><span class="p">.</span><span class="nx">raty</span><span class="p">.</span><span class="nx">min</span><span class="p">.</span><span class="nx">js</span><span class="o">:</span><span class="mi">12</span>
<span class="nx">b</span><span class="p">.</span><span class="nx">fn</span><span class="p">.</span><span class="nx">raty</span> <span class="nx">jquery</span><span class="p">.</span><span class="nx">raty</span><span class="p">.</span><span class="nx">min</span><span class="p">.</span><span class="nx">js</span><span class="o">:</span><span class="mi">12</span>
<span class="p">(</span><span class="nx">anonymous</span> <span class="kd">function</span><span class="p">)</span> <span class="nx">produs</span><span class="p">.</span><span class="nx">php</span><span class="o">?</span><span class="nx">produsid</span><span class="o">=</span><span class="mi">21</span><span class="o">:</span><span class="mi">245</span>
<span class="p">(</span><span class="nx">anonymous</span> <span class="kd">function</span><span class="p">)</span> <span class="nx">VM4322</span><span class="o">:</span><span class="mi">1</span>
<span class="p">(</span><span class="nx">anonymous</span> <span class="kd">function</span><span class="p">)</span> <span class="nx">VM4322</span><span class="o">:</span><span class="mi">1</span>
<span class="nx">E</span><span class="p">.</span><span class="nx">extend</span><span class="p">.</span><span class="nx">each</span> <span class="nx">VM4322</span><span class="o">:</span><span class="mi">1</span>
<span class="nx">E</span><span class="p">.</span><span class="nx">extend</span><span class="p">.</span><span class="nx">ready</span> <span class="nx">VM4322</span><span class="o">:</span><span class="mi">1</span>
<span class="nx">event</span><span class="p">.</span><span class="nx">returnValue</span> <span class="nx">is</span> <span class="nx">deprecated</span><span class="p">.</span> <span class="nx">Please</span> <span class="nx">use</span> <span class="nx">the</span> <span class="nx">standard</span> <span class="nx">event</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">()</span> <span class="nx">instead</span><span class="p">.</span>
</pre></div>

    <footer>
      <a href="#comment-674" class="anchor" title="Link to this comment">#674</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-683" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Istvan Szollosi,</p>

<p>Check if your jQuery was imported before the Raty call.<br>
Check if you jQuery version has the new method <code>on</code>.</p>

<p>This problem is about import, about jQuery, not about Raty.</p>


    <footer>
      <a href="#comment-683" class="anchor" title="Link to this comment">#683</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-673" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/07777442d9de807b3e8962129bc5fdfb?d=mm" title="Mark">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Mark</a>
      
      
      
    </header>

    <p>Hi</p>

<p>Is there a way of easily posting the data to a rails application? I have added the call to my application to get the images and the java but every time I post my form my defined attribute doesn't save the the rating to the DB. Heres my code :</p>
<div class="highlight"><pre><span class="nt">&lt;div</span> <span class="na">id=</span><span class="s">"star"</span> <span class="na">data-score=</span><span class="s">"1"</span><span class="nt">&gt;</span>
  <span class="err">&lt;</span>%= :review_rating %&gt;
<span class="nt">&lt;/div&gt;</span>
</pre></div>
<div class="highlight"><pre><span class="nx">$</span><span class="p">(</span><span class="s1">'#star'</span><span class="p">).</span><span class="nx">raty</span><span class="p">({</span>
  <span class="nx">score</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
    <span class="k">return</span> <span class="nx">$</span><span class="p">(</span><span class="k">this</span><span class="p">).</span><span class="nx">attr</span><span class="p">(</span><span class="s1">':review_rating'</span><span class="p">)</span>
  <span class="p">}</span>
<span class="p">});</span>
</pre></div>
<p>Forgive me if it seems basic but I know very little about J query and am at beginner level. The <code>:review_rating</code> is my rails attribute that Im trying to commit the score to.</p>

<p>Please let me know.</p>

<p>Many Thanks </p>


    <footer>
      <a href="#comment-673" class="anchor" title="Link to this comment">#673</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-682" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Mark,</p>

<p>The value send by jQuery Raty is a hidden field, not what you put inside the div.<br>
This content inside the div is ignored, because Raty will override it, then you <code>&lt;%= :review_rating %&gt;</code> is useless.<br>
By default the hidden field that holds the score is called <code>score</code>, but you can change it if you need.</p>


    <footer>
      <a href="#comment-682" class="anchor" title="Link to this comment">#682</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-672" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/2fe6bd71a146dd113e894200ccc5e417?d=mm" title="Brandon">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Brandon</a>
      
      
      
    </header>

    <p>Awesome plugin! Super easy to use and dropped right into my rails app for a reviews rating system. Thanks!</p>


    <footer>
      <a href="#comment-672" class="anchor" title="Link to this comment">#672</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-681" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Brandon,</p>

<p>Great! (:</p>


    <footer>
      <a href="#comment-681" class="anchor" title="Link to this comment">#681</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-666" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/5f932334f26daeb30e1f6843f4c5fe70?d=mm" title="Daniel Weller">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Daniel Weller</a>
      
      
      
    </header>

    <p>Here is a link to a tutorial for ruby on rails. If anyone can get it to fully work let me know! I've been able to only get the update stars to work. (Average rating isn't working)</p>

<p><a href="http://paweljaniak.co.za/2013/07/25/5-star-ratings-with-rails/">http://paweljaniak.co.za/2013/07/25/5-star-ratings-with-rails/</a></p>


    <footer>
      <a href="#comment-666" class="anchor" title="Link to this comment">#666</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-671" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Daniel Weller,</p>

<p>Thanks for the contribution.</p>


    <footer>
      <a href="#comment-671" class="anchor" title="Link to this comment">#671</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-664" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/17d0a792231574531d52fd09e5cad84a?d=mm" title="Max">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Max</a>
      
      
      
    </header>

    <p>@Roosevelt: luckily you find the download on his github page as well: <a href="https://github.com/wbotelhos/raty">https://github.com/wbotelhos/raty</a></p>


    <footer>
      <a href="#comment-664" class="anchor" title="Link to this comment">#664</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-670" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Max,</p>

<p>Thanks for the help. (:</p>


    <footer>
      <a href="#comment-670" class="anchor" title="Link to this comment">#670</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-662" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/b19d3a8e787126de5953c113ceff2be9?d=mm" title="Roosevelt P">
  </div>

  <div class="body">
    <header>
      <a href="http://www.naetech.com" target="_blank">Roosevelt P</a>
      
      
      
    </header>

    <p>Your download link to the plugin is throwing a 404 error.</p>


    <footer>
      <a href="#comment-662" class="anchor" title="Link to this comment">#662</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-669" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Roosevelt P,</p>

<p>I fixed it. Thanks!</p>


    <footer>
      <a href="#comment-669" class="anchor" title="Link to this comment">#669</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-661" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/e72a8f02bf33e4b757bd9d9a75ca6977?d=mm" title="Bill">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Bill</a>
      
      
      
    </header>

    <p>Hi,</p>

<p>Is there a way to check and see if a visitor has already voted &amp; if so, then set it to read only?</p>

<p>Also, I would like to store the rating &amp; number of votes in a mySQL database, how could I do that?</p>


    <footer>
      <a href="#comment-661" class="anchor" title="Link to this comment">#661</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-668" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Bill,</p>

<p>You can save it into database.<br>
When the user click on star, it actives the <a href="#click">click</a> callback, inside it you can get the score and save it via ajax.</p>

<p>Or you can just let the user to vote and create a submit button that will send the value keeped into hidden field named <code>score</code> by default.</p>


    <footer>
      <a href="#comment-668" class="anchor" title="Link to this comment">#668</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-660" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/b38e22f68b14e6752dd6fd9400ebef0a?d=mm" title="Tj">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Tj</a>
      
      
      
    </header>

    <p>Hi, How to save previous ratings ?? How to download and install this plugin ?</p>

<p>please help</p>


    <footer>
      <a href="#comment-660" class="anchor" title="Link to this comment">#660</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-667" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Tj,</p>

<p>To save the last rating, you need to keep it on your database.<br>
To instal, just import the files e use the code showed on this page.</p>


    <footer>
      <a href="#comment-667" class="anchor" title="Link to this comment">#667</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-654" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/da5b2acb1906cb835262546e3b67fc4b?d=mm" title="Lanamaja">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Lanamaja</a>
      
      
      
    </header>

    <p>Hi,<br>
how can i add this on a wordpress page? and/or include into a contact form?<br>
If i want the plugin to open up different links or display messages depending on the number of stars the user clicked, how could i manage this<br>
with your plugin?</p>

<p>Thanks in advance</p>


    <footer>
      <a href="#comment-654" class="anchor" title="Link to this comment">#654</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-659" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Lanamaja,</p>

<p>You will use the same code. But where put it, I can't help you, because I don't know about wordpress coding.</p>

<p>To open whatever you want, use the callback <a href="#click">click</a>, inside it you can get the <code>score</code> and do your logic.</p>


    <footer>
      <a href="#comment-659" class="anchor" title="Link to this comment">#659</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-652" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/1761d6e4e94e6591190678d6b32c72a3?d=mm" title="Amarpreet">
  </div>

  <div class="body">
    <header>
      <a href="javascript:void(0);">Amarpreet</a>
      
      
      
    </header>

    <p>Hi,</p>

<p>Could you help me with how i can post the rating using ajax.       </p>


    <footer>
      <a href="#comment-652" class="anchor" title="Link to this comment">#652</a>
      
      
    </footer>
  </div>

    <ol>
      <li id="comment-653" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      <span class="flag author">author</span>
      
    </header>

    <p>Amarpreet,</p>

<p>You can do it from inside the <a href="#click">click</a> callback.<br>
Get the <a href="#score">score</a> value and manipulate it with jQuery.</p>

<p>Ajax POST reference: <a href="http://api.jquery.com/jquery.post">http://api.jquery.com/jquery.post</a></p>


    <footer>
      <a href="#comment-653" class="anchor" title="Link to this comment">#653</a>
      
      
    </footer>
  </div>

</li>

    </ol>
</li>
<li id="comment-650" class="comment">
  <div class="avatar">
    <img alt="" src="http://www.gravatar.com/avatar/9ba395435487e85de7df942b77a75674?d=mm" title="Washington Botelho">
  </div>

  <div class="body">
    <header>
      <a href="http://wbotelhos.com" target="_blank">Washington Botelho</a>
      
      
      
    </header>

    <p>first</p>


    <footer>
      <a href="#comment-650" class="anchor" title="Link to this comment">#650</a>
      
      
    </footer>
  </div>

</li>

  </ol>
</section>



<script>
  $(function() {
      AntiBOT.init('.new_comment');

    CommentResponder.init();

    $('#comment_body').taby();
  });
</script>


  </div>

  <script>
  $.fn.raty.defaults.path = '../lib/images';

  $(function() {
    $('#default').raty();

$('#score').raty({ score: 3 });

$('#score-callback').raty({
  score: function() {
    return $(this).attr('data-score');
  }
});

$('#scoreName').raty({ scoreName: 'entity[score]' });

$('#number').raty({ number: 10 });

$('#number-callback').raty({
  number: function() {
    return $(this).attr('data-number');
  }
});

$('#numberMax').raty({
  numberMax : 5,
  number    : 100
});

$('#readOnly').raty({ readOnly: true, score: 3 });

$('#readOnly-callback').raty({
  readOnly: function() {
    return 'true becomes readOnly' == 'true becomes readOnly';
  }
});

$('#noRatedMsg').raty({
  readOnly   : true,
  noRatedMsg : "I'am readOnly and I haven't rated yet!"
});

$('#halfShow-true').raty({ score: 3.26 });

$('#halfShow-false').raty({
  halfShow : false,
  score    : 3.26
});

$('#round').raty({
  round : { down: .26, full: .6, up: .76 },
  score : 3.26
});

$('#half').raty({
  half  : true,
  hints : [['bad 1/2', 'bad'], ['poor 1/2', 'poor'], ['regular 1/2', 'regular'], ['good 1/2', 'good'], ['gorgeous 1/2', 'gorgeous']]
});

$('#starHalf').raty({
  half     : true,
  path     : null,
  starHalf : 'demo/images/star-half-mono.png',
  starOff  : '../lib/images/star-off.png',
  starOn   : '../lib/images/star-on.png'
});

$('#click').raty({
  click: function(score, evt) {
    alert('ID: ' + this.id + "\nscore: " + score + "\nevent: " + evt.type);
  }
});

$('#click-prevent').raty({
  click: function(score, evt) {
    alert('Score will not change.')
    return false;
  }
});

$('#hints').raty({ hints: ['a', null, '', undefined, '*_*']});

$('#star-off-and-star-on').raty({
  path    : 'demo/images',
  starOff : 'off.png',
  starOn  : 'on.png'
});

$('#cancel').raty({ cancel: true });

$('#cancelHint').raty({
  cancel     : true,
  cancelHint : 'My cancel hint!'
});

$('#cancelPlace').raty({
  cancel      : true,
  cancelPlace : 'right'
});

$('#star-off-and-star-on').raty({
  path    : 'demo/images',
  starOff : 'off.png',
  starOn  : 'on.png'
});

$('#cancel-off-and-cancel-on').raty({
  cancel    : true,
  cancelOff : 'demo/images/cancel-custom-off.png',
  cancelOn  : 'demo/images/cancel-custom-on.png',
  path      : null,
  starOff   : '../lib/images/star-off.png',
  starOn    : '../lib/images/star-on.png'
});

$('#iconRange').raty({
  path      : null,
  starOff   : '../lib/images/star-off.png',
  iconRange : [
    { range: 1, on: 'demo/images/1.png', off: 'demo/images/0.png' },
    { range: 2, on: 'demo/images/2.png', off: 'demo/images/0.png' },
    { range: 3, on: 'demo/images/3.png', off: 'demo/images/0.png' },
    { range: 4, on: 'demo/images/4.png', off: 'demo/images/0.png' },
    { range: 5, on: 'demo/images/5.png', off: 'demo/images/0.png' }
  ]
});

$('#size').raty({
  path      : 'demo/images',
  cancel    : true,
  cancelOff : 'cancel-off.png',
  cancelOn  : 'cancel-on.png',
  half      : true,
  starHalf  : 'star-half.png',
  starOff   : 'star-off.png',
  starOn    : 'star-on.png'
});

$('#target-div').raty({
  cancel : true,
  target : '#target-div-hint'
});

$('#target-text').raty({
  cancel : true,
  target : '#target-text-hint'
});

$('#target-textarea').raty({
  cancel : true,
  target : '#target-textarea-hint'
});

$('#target-select').raty({
  cancel : true,
  target : '#target-select-hint'
});

$('#targetType').raty({
  cancel     : true,
  target     : '#targetType-hint',
  targetType : 'score'
});

$('#targetKeep').raty({
  cancel     : true,
  target     : '#targetKeep-hint',
  targetKeep : true
});

$('#targetText').raty({
  target     : '#targetText-hint',
  targetText : '--'
});

$('#targetFormat').raty({
  target       : '#targetFormat-hint',
  targetFormat : 'Rating: {score}'
});

$('#targetScore').raty({
  targetScore: '#target-score'
});

$('#mouseover').raty({
  mouseover: function(score, evt) {
    alert('ID: ' + this.id + "\nscore: " + score + "\nevent: " + evt.type);
  }
});

$('#mouseout').raty({
  mouseout: function(score, evt) {
    alert('ID: ' + this.id + "\nscore: " + score + "\nevent: " + evt.type);
  }
});

$('#precision').raty({
  cancel     : true,
  cancelOff  : 'cancel-off.png',
  cancelOn   : 'cancel-on.png',
  path       : 'demo/images',
  starHalf   : 'star-half.png',
  starOff    : 'star-off.png',
  starOn     : 'star-on.png',
  target     : '#precision-hint',
  targetKeep : true,

  precision  : true
});

$('#space').raty({ space: false });

$('#single').raty({ single: true });

$('#starType').raty({
  cancel   : true,
  half     : true,
  starType : 'i'
});

$('#functions').raty({
  cancel     : true,
  cancelOff  : 'cancel-off.png',
  cancelOn   : 'cancel-on.png',
  path       : 'demo/images',
  precision  : true,
  starHalf   : 'star-half.png',
  starOff    : 'star-off.png',
  starOn     : 'star-on.png',
  target     : '#functions-hint',
  targetKeep : true,
  click: function(score, evt) {
    alert('ID: ' + this.id + "\nscore: " + score + "\nevent: " + evt.type);
  },
  hints: [
    ['bad 1'      , 'bad 2'      , 'bad 3'      , 'bad 4'      , 'bad 5'      , 'bad 6'      , 'bad 7'      , 'bad 8'      , 'bad 9'      , 'bad'      ], 
    ['poor 1'     , 'poor 2'     , 'poor 3'     , 'poor 4'     , 'poor 5'     , 'poor 6'     , 'poor 7'     , 'poor 8'     , 'poor 9'     , 'poor'     ], 
    ['regular 1'  , 'regular 2'  , 'regular 3'  , 'regular 4'  , 'regular 5'  , 'regular 6'  , 'regular 7'  , 'regular 8'  , 'regular 9'  , 'regular'  ], 
    ['good 1'     , 'good 2'     , 'good 3'     , 'good 4'     , 'good 5'     , 'good 6'     , 'good 7'     , 'good 8'     , 'good 9'     , 'good'     ], 
    ['gorgeous 1' , 'gorgeous 2' , 'gorgeous 3' , 'gorgeous 4' , 'gorgeous 5' , 'gorgeous 6' , 'gorgeous 7' , 'gorgeous 8' , 'gorgeous 9' , 'gorgeous' ]
  ]
});

$('#score-function-run').on('click', function() {
  $('#functions').raty('score', $('#' + this.id.replace('-run', '')).val());
});

$('#click-function-run').on('click', function() {
  $('#functions').raty('click', $('#' + this.id.replace('-run', '')).val());
});

$('#readOnly-function-run').on('click', function() {
var isReadOnly = $('#' + this.id.replace('-run', '')).val() === 'true';

  $('#functions').raty('readOnly', isReadOnly);
});

$('#cancel-function-run').on('click', function() {
var isTrigger = $('#' + this.id.replace('-run', '')).val() === 'true';

  $('#functions').raty('cancel', isTrigger);
});

$('#reload-function-run').on('click', function() {
  $('#functions').raty('reload');
});

$('#get-score-function-run').on('click', function() {
  alert('score: ' + $('#functions').raty('score'));
});

$('#set-score-function-run').on('click', function() {
  $('#functions').raty('score', $('#' + this.id.replace('-run', '')).val());
});

$('#set-function-run').on('click', function() {
  var options = $('#' + this.id.replace('-run', '').val()),
      command = "$('#functions').raty('set', " + options + ");";

  eval(command);
});

$('#destroy-function-run').on('click', function() {
  $('#functions').raty('destroy');
});

$('#move-function-run').on('click', function() {
  $('#functions').raty('move', $('#' + this.id.replace('-run', '')).val());
});
  });
</script>

  
</body>
</html>