1 | <!doctype html> |
---|
2 | <html lang="en"> |
---|
3 | <head> |
---|
4 | <title>Customized Icon</title> |
---|
5 | <meta charset="utf-8" /> |
---|
6 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> |
---|
7 | <meta name="description" content="%description%" /> |
---|
8 | <meta name="keywords" content="" /> |
---|
9 | <meta name="author" content="ComponentOne" /> |
---|
10 | |
---|
11 | <link href="../../themes/rocket/jquery-wijmo.css" rel="stylesheet" type="text/css" /> |
---|
12 | <link href="../../themes/wijmo/jquery.wijmo.wijrating.css" rel="stylesheet" type="text/css" /> |
---|
13 | |
---|
14 | <script src="../../external/jquery-1.8.0.min.js" type="text/javascript"></script> |
---|
15 | <script src="../../external/jquery-ui-1.8.23.custom.min.js" type="text/javascript"></script> |
---|
16 | <script src="../../wijmo/jquery.wijmo.wijrating.js" type="text/javascript"></script> |
---|
17 | <script id="scriptInit" type="text/javascript"> |
---|
18 | $(document).ready(function () { |
---|
19 | $('#rating1').wijrating({ |
---|
20 | iconWidth: 24, |
---|
21 | iconHeight: 24, |
---|
22 | icons: { |
---|
23 | iconsClass: 'wijmo-wijrating-normal-24', |
---|
24 | hoverIconsClass: 'wijmo-wijrating-hover-24', |
---|
25 | ratedIconsClass: 'wijmo-wijrating-rated-24' |
---|
26 | } |
---|
27 | }); |
---|
28 | $('#rating3').wijrating({ |
---|
29 | iconWidth: 32, |
---|
30 | iconHeight: 32, |
---|
31 | icons: { |
---|
32 | iconsClass: 'wijmo-wijrating-normal-32', |
---|
33 | hoverIconsClass: 'wijmo-wijrating-hover-32', |
---|
34 | ratedIconsClass: 'wijmo-wijrating-rated-32' |
---|
35 | } |
---|
36 | }); |
---|
37 | $('#rating4').wijrating({ |
---|
38 | iconWidth: 16, |
---|
39 | iconHeight: 16, |
---|
40 | icons: { |
---|
41 | iconsClass: ['wijmo-wijrating-normal-thumbdown', 'wijmo-wijrating-normal-thumbup'], |
---|
42 | hoverIconsClass: ['wijmo-wijrating-hover-thumbdown', 'wijmo-wijrating-hover-thumbup'], |
---|
43 | ratedIconsClass: ['wijmo-wijrating-rated-thumbdown', 'wijmo-wijrating-rated-thumbup'] |
---|
44 | } |
---|
45 | }); |
---|
46 | $('#rating2').wijrating({ |
---|
47 | iconWidth: 11, |
---|
48 | iconHeight: 61, |
---|
49 | icons: { |
---|
50 | iconsClass: ['wijmo-wijrating-normal-bar-11', 'wijmo-wijrating-normal-bar-21', 'wijmo-wijrating-normal-bar-31', 'wijmo-wijrating-normal-bar-41', 'wijmo-wijrating-normal-bar-51', 'wijmo-wijrating-normal-bar-61'], |
---|
51 | hoverIconsClass: ['wijmo-wijrating-hover-bar-11', 'wijmo-wijrating-hover-bar-21', 'wijmo-wijrating-hover-bar-31', 'wijmo-wijrating-hover-bar-41', 'wijmo-wijrating-hover-bar-51', 'wijmo-wijrating-hover-bar-61'], |
---|
52 | ratedIconsClass: ['wijmo-wijrating-rated-bar-11', 'wijmo-wijrating-rated-bar-21', 'wijmo-wijrating-rated-bar-31', 'wijmo-wijrating-rated-bar-41', 'wijmo-wijrating-rated-bar-51', 'wijmo-wijrating-rated-bar-61'] |
---|
53 | } |
---|
54 | }); |
---|
55 | }); |
---|
56 | </script> |
---|
57 | </head> |
---|
58 | <body class="demo-single"> |
---|
59 | <div class="container"> |
---|
60 | <div class="header"> |
---|
61 | <h2> |
---|
62 | Overview</h2> |
---|
63 | </div> |
---|
64 | <div class="main demo"> |
---|
65 | <!-- Begin demo markup --> |
---|
66 | |
---|
67 | <h4> |
---|
68 | String 24</h4> |
---|
69 | <div> |
---|
70 | <select id="rating1"> |
---|
71 | <option value="1">Bad</option> |
---|
72 | <option value="2">Below Average</option> |
---|
73 | <option value="3">Average</option> |
---|
74 | <option selected="selected" value="4">Above Average</option> |
---|
75 | <option value="5">Awesome</option> |
---|
76 | <option value="6">Epic</option> |
---|
77 | </select> |
---|
78 | </div> |
---|
79 | |
---|
80 | <h4> |
---|
81 | String 32</h4> |
---|
82 | <div> |
---|
83 | <select id="rating3"> |
---|
84 | <option value="1">Bad</option> |
---|
85 | <option value="2">Below Average</option> |
---|
86 | <option value="3">Average</option> |
---|
87 | <option selected="selected" value="4">Above Average</option> |
---|
88 | <option value="5">Awesome</option> |
---|
89 | <option value="6">Epic</option> |
---|
90 | </select> |
---|
91 | </div> |
---|
92 | |
---|
93 | <h4> |
---|
94 | Thumb</h4> |
---|
95 | <div> |
---|
96 | <select id="rating4"> |
---|
97 | <option value="1">Like</option> |
---|
98 | <option value="2">Dislike</option> |
---|
99 | </select> |
---|
100 | </div> |
---|
101 | |
---|
102 | <h4> |
---|
103 | Array</h4> |
---|
104 | <div> |
---|
105 | <select id="rating2"> |
---|
106 | <option value="1">Bad</option> |
---|
107 | <option value="2">Below Average</option> |
---|
108 | <option value="3">Average</option> |
---|
109 | <option selected="selected" value="4">Above Average</option> |
---|
110 | <option value="5">Awesome</option> |
---|
111 | <option value="6">Epic</option> |
---|
112 | </select> |
---|
113 | </div> |
---|
114 | |
---|
115 | <!-- End demo markup --> |
---|
116 | <div class="demo-options"> |
---|
117 | <!-- Begin options markup --> |
---|
118 | <!-- End options markup --> |
---|
119 | </div> |
---|
120 | </div> |
---|
121 | <div class="footer demo-description"> |
---|
122 | <p>This sample demonstrates how to create a rating widget simply with customized icon.</p> |
---|
123 | </div> |
---|
124 | </div> |
---|
125 | </body> |
---|
126 | </html> |
---|