| 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>Variable Height List (Round Rectangle)</title> |
| 8 | |
| 9 | <script type="text/javascript" src="../deviceTheme.js" data-dojo-config="mblThemeFiles: ['base']"></script> |
| 10 | <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="async: true, parseOnLoad: true"></script> |
| 11 | |
| 12 | <script type="text/javascript"> |
| 13 | require([ |
| 14 | "dojox/mobile/parser", |
| 15 | "dojox/mobile", |
| 16 | "dojox/mobile/compat" |
| 17 | ]); |
| 18 | </script> |
| 19 | <style> |
| 20 | .content { |
| 21 | padding:0px 10px; |
| 22 | background-color: white; |
| 23 | } |
| 24 | p { |
| 25 | font-family: Helvetica; |
| 26 | font-size: 12px; |
| 27 | } |
| 28 | .title { |
| 29 | color: blue; |
| 30 | margin-bottom: 4px; |
| 31 | } |
| 32 | .subtitle { |
| 33 | font-style: italic; |
| 34 | color: gray; |
| 35 | margin: 0px; |
| 36 | margin-bottom: 4px; |
| 37 | } |
| 38 | .subsubtitle { |
| 39 | margin: 16px 0px 0px 0px; |
| 40 | } |
| 41 | .lst { |
| 42 | margin: 0px; |
| 43 | padding: 0px 14px; |
| 44 | } |
| 45 | .lst li { |
| 46 | font-family: Helvetica; |
| 47 | font-size: 12px; |
| 48 | margin: 0px; |
| 49 | list-style-type: square; |
| 50 | } |
| 51 | </style> |
| 52 | </head> |
| 53 | <body style="visibility:hidden;"> |
| 54 | <div id="home" data-dojo-type="dojox.mobile.View"> |
| 55 | <h1 data-dojo-type="dojox.mobile.Heading">Variable Height List Item</h1> |
| 56 | <h2 data-dojo-type="dojox.mobile.RoundRectCategory">Top Stories</h2> |
| 57 | <ul data-dojo-type="dojox.mobile.RoundRectList" data-dojo-props='variableHeight:true'> |
| 58 | <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-1.png", moveTo:"#article", transition:"slide"'> |
| 59 | Top 10 news stories of the decade |
| 60 | </li> |
| 61 | <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-2.png", moveTo:"#article", transition:"flip"'> |
| 62 | Create client-side diagrammatic interaction in Web applications with GFX |
| 63 | </li> |
| 64 | <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"images/i-icon-3.png", moveTo:"#article", transition:"fade"'> |
| 65 | Explores advanced topics in the new Java framework for implementing and consuming REST-based Web services, Part 3 |
| 66 | </li> |
| 67 | </ul> |
| 68 | </div> |
| 69 | |
| 70 | <div id="article" data-dojo-type="dojox.mobile.View" style="color:black;background-color:white;height:100%"> |
| 71 | <h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props='back:"Home", moveTo:"#home"'>Article</h1> |
| 72 | <div class="content"> |
| 73 | <h3 class="title">Did you know?</h3> |
| 74 | <h4 class="subtitle">Features of dojox.mobile</h4> |
| 75 | <h5 class="subsubtitle">No images are used</h5> |
| 76 | <ul class="lst"> |
| 77 | <li>UI parts consist of DOM and CSS3.</li> |
| 78 | <li>Only application icons are images.</li> |
| 79 | </ul> |
| 80 | <p>For example, none of the UI parts below are images.<br></p> |
| 81 | <img src="images/not-images.png"> |
| 82 | |
| 83 | <h5 class="subsubtitle">Removed dependencies on the dojo modules as much as possible</h5> |
| 84 | <ul class="lst"> |
| 85 | <li>No dependencies even on some of the essential core modules like Templated, Container, Contained, dojo.query, or dojo.parser.</li> |
| 86 | </ul> |
| 87 | |
| 88 | <h5 class="subsubtitle">Support for CSS sprite</h5> |
| 89 | <ul class="lst"> |
| 90 | <li>Application icon images can be aggregated into a single file to reduce the number of http requests.</li> |
| 91 | </ul> |
| 92 | |
| 93 | <h5 class="subsubtitle">Possible to use the webkitMobile build option (when PC browser support is unnecessary)</h5> |
| 94 | <ul class="lst"> |
| 95 | <li>Drops IE and Firefox-specific code at build time, and thus reduces the dojo core size</li> |
| 96 | </ul> |
| 97 | </div> |
| 98 | </div> |
| 99 | </body> |
| 100 | </html> |