Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (38 sloc) 1.17 KB
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile: Event Logger</title>
<link rel="stylesheet" href="../../css/themes/default/" />
<link rel="stylesheet" href="../../docs/_assets/css/jqm-docs.css" />
#orientationText {
font-size: x-large;
font-weight: bold;
margin: 1em;
<script src="../../js/jquery.js"></script>
<script data-main="../../js/" src="../../external/requirejs/require.js"></script>
$( document ).one( "pageinit", function() {
function updateOrientation()
$( "#orientationText" ).text( $.event.special.orientationchange.orientation() );
$( window ).bind( $.support.orientation ? "orientationchange" : "resize", updateOrientation);
<div data-role="page">
<div data-role="header"><h1>Orientation Test</h1></div>
<div data-role="content">
<p>The current device orientation is displayed below. It should *ALWAYS* be correct!</p>
<div id="orientationText">Orientation Not Supported!</div>
Jump to Line
Something went wrong with that request. Please try again.