5 <meta name="viewport" content="width=device-width">
6 <title>Configuration Properties</title>
7 <link rel="stylesheet" href="../css/themes/default/jquery.mobile.css" />
10 .prop { float: left; font-weight: bold; }
11 .val { float: right; margin-left: 2em; }
13 .ui-li { overflow: hidden; }
16 <script src="../js/jquery.js"></script>
17 <script src="../js/"></script>
20 function simpleEntityEncode( str )
22 return ( str + "" ).replace( /&/, "&" ).replace( /</, "<" ).replace( />/, ">" );
25 function getObjectPropsAsArray( obj, doSort )
31 return doSort ? props.sort() : props;
34 function getPropsAsListviewMarkkup( obj )
36 var props = getObjectPropsAsArray( obj || {}, true ),
37 propStr = "<ul data-role='listview' data-inset='true'>\n",
40 for ( i = 0; i < props.length; i++ ) {
45 if ( vtype !== "function" && vtype !== "object" ) {
46 propStr += "\t<li><span class='prop'>" + simpleEntityEncode( prop ) + ":</span><span class='val'>" + simpleEntityEncode( val ) + "</span></li>\n";
50 return propStr + "</ul>\n";
53 $( document ).bind( "pageinit", function( e ) {
54 var $content = $( e.target ).find( ".ui-content");
56 $( "<h2>$.mobile</h2>" ).appendTo( $content );
57 $( getPropsAsListviewMarkkup( $.mobile ) ).appendTo( $content ).listview();
58 $( "<h2>$.support</h2>" ).appendTo( $content );
59 $( getPropsAsListviewMarkkup( $.support ) ).appendTo( $content ).listview();
66 <div data-role="page">
67 <div data-role="header"><h1>Configuration Properties</h1></div>
68 <div data-role="content">
69 <p>Below is a dump of the non-function/object properties of the $.mobile and $.support objects. These properties typically control how the jQuery Mobile framework behaves on the various devices/platforms. You can use this page to quickly assess the default support configuration calculated by both jQuery Core and jQuery Mobile.</p>