Line | |
---|
1 | <!DOCTYPE html> |
---|
2 | <html> |
---|
3 | <head> |
---|
4 | <meta http-equiv="Content-type" content="text/html; charset=utf-8"/> |
---|
5 | <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/> |
---|
6 | <meta name="apple-mobile-web-app-capable" content="yes"/> |
---|
7 | <title>Rating</title> |
---|
8 | |
---|
9 | <script type="text/javascript" src="../deviceTheme.js" data-dojo-config="mblThemeFiles: ['base'],mblUserAgent:'iPhone'"></script> |
---|
10 | <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="async: true"></script> |
---|
11 | |
---|
12 | <script type="text/javascript"> |
---|
13 | require([ |
---|
14 | "dojo/ready", |
---|
15 | "dojo/_base/window", |
---|
16 | "dojox/mobile/Rating", |
---|
17 | "dojox/mobile" |
---|
18 | ], function(ready, win, Rating){ |
---|
19 | ready(function(){ |
---|
20 | var widget = new Rating({ |
---|
21 | image: "images/star-orange.png", |
---|
22 | numStars: 10, |
---|
23 | value: 5.5 |
---|
24 | }); |
---|
25 | win.body().appendChild(widget.domNode); |
---|
26 | }); |
---|
27 | }); |
---|
28 | </script> |
---|
29 | </head> |
---|
30 | <body> |
---|
31 | <h3>Programmatic Example</h3> |
---|
32 | </body> |
---|
33 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.