| 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>Lazy-loadable Carousel Photo Gallery</title> |
| 8 | |
| 9 | <script type="text/javascript" src="../deviceTheme.js" data-dojo-config="mblThemeFiles: ['base','Carousel','PageIndicator']"></script> |
| 10 | <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="async: true, parseOnLoad: true, mblAlwaysHideAddressBar: true"></script> |
| 11 | |
| 12 | <script type="text/javascript"> |
| 13 | require([ |
| 14 | "dojo/_base/connect", |
| 15 | "dojo/store/Memory", |
| 16 | "dojo/ready", |
| 17 | "dijit/registry", |
| 18 | "dojox/mobile/parser", |
| 19 | "dojox/mobile", |
| 20 | "dojox/mobile/compat", |
| 21 | "dojox/mobile/ScrollableView", |
| 22 | "dojox/mobile/StoreCarousel" |
| 23 | ]); |
| 24 | |
| 25 | var json = [ |
| 26 | {src:"images/pic1.jpg", alt:"Wally"}, |
| 27 | {src:"images/pic2.jpg"}, |
| 28 | {src:"images/pic3.jpg"}, |
| 29 | {src:"images/pic4.jpg"}, |
| 30 | {src:"images/pic5.jpg"}, |
| 31 | {src:"images/pic6.jpg"}, |
| 32 | {src:"images/pic7.jpg"}, |
| 33 | {src:"images/pic8.jpg"}, |
| 34 | {src:"images/pic9.jpg"}, |
| 35 | {src:"images/pic10.jpg"} |
| 36 | ]; |
| 37 | </script> |
| 38 | </head> |
| 39 | <body style="visibility:hidden;background-color:#6D6D6D"> |
| 40 | <div id="foo" data-dojo-type="dojox.mobile.ScrollableView"> |
| 41 | <span data-dojo-id="store1" data-dojo-type="dojo.store.Memory" data-dojo-props='data:json'></span> |
| 42 | <div data-dojo-type="dojox.mobile.StoreCarousel" |
| 43 | data-dojo-props='height:"280px", store:store1, numVisible:1, title:"Photo Gallery", selectable:false'></div> |
| 44 | </div> |
| 45 | </body> |
| 46 | </html> |