5 <meta name="viewport" content="width=device-width, initial-scale=1">
6 <title>jQuery Mobile: Orientation</title>
7 <link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css" />
8 <link rel="stylesheet" href="../../docs/_assets/css/jqm-docs.css" />
18 <script src="../../external/requirejs/require.js"></script>
19 <script src="../../js/jquery.tag.inserter.js"></script>
23 } )( [ "jquery", "jquery.mobile" ], function( $ ) {
24 $( document ).one( "pageinit", function() {
25 function updateOrientation()
27 $( "#orientationText" ).text( $.event.special.orientationchange.orientation() );
31 $( window ).bind( $.support.orientation ? "orientationchange" : "resize", updateOrientation);
38 <div data-role="page">
39 <div data-role="header"><h1>Orientation Test</h1></div>
40 <div data-role="content">
41 <p>The current device orientation is displayed below. It should *ALWAYS* be correct!</p>
42 <div id="orientationText">Orientation Not Supported!</div>