Created
August 12, 2011 16:50
-
-
Save ruprict/1142447 to your computer and use it in GitHub Desktop.
PhoneGap jquery Mobile issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" /> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<!-- iPad/iPhone specific css below, add after your main css > | |
<link rel="stylesheet" media="only screen and (max-device-width: 1024px)" href="ipad.css" type="text/css" /> | |
<link rel="stylesheet" media="only screen and (max-device-width: 480px)" href="iphone.css" type="text/css" /> | |
--> | |
<!-- If your application is targeting iOS BEFORE 4.0 you MUST put json2.js from http://www.JSON.org/json2.js into your www directory and include it here --> | |
<script type="text/javascript" charset="utf-8" src="phonegap-1.0.0.js"></script> | |
<title>Hello jQuery Mobile</title> | |
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4/jquery.mobile-1.0a4.min.css" /> | |
<script type="text/javascript" charset="utf-8" src="phonegap-1.0.0.js"></script> | |
<script src="http://code.jquery.com/jquery-1.5.2.min.js"></script> | |
<script src="http://code.jquery.com/mobile/1.0a4/jquery.mobile-1.0a4.min.js"></script> | |
<script type="text/javascript" language="javascript" charset="utf-8"> | |
//<![CDATA[ | |
$(function() { | |
$('html').bind('orientationchange', function(e) { | |
console.log(e.orientation); | |
}); | |
}); | |
//]]> | |
</script> | |
</head> | |
<body> | |
<div data-role="page"> | |
Hello jQuery Mobile | |
<div data-role="footer" data-id="foo1" data-position="fixed" class="ui-footer ui-bar-a ui-footer-fixed fade ui-fixed-inline" role="contentinfo" style="top: 0px; "> | |
<div data-role="navbar" class="ui-navbar ui-navbar-noicons" role="navigation"> | |
<ul class="ui-grid-b"> | |
<li class="ui-block-a"><a href="#home" class="ui-btn-active ui-state-persist ui-btn ui-btn-up-a" data-theme="a"><span class="ui-btn-inner"><span class="ui-btn-text">Map</span></span></a></li> | |
<li class="ui-block-b"><a href="#who" data-theme="a" class="ui-btn ui-btn-up-a"><span class="ui-btn-inner"><span class="ui-btn-text">Who</span></span></a></li> | |
<li class="ui-block-c"><a href="index_test.html" data-theme="a" class="ui-btn ui-btn-up-a"><span class="ui-btn-inner"><span class="ui-btn-text">Other</span></span></a></li> | |
</ul> | |
</div><!-- /navbar --> | |
</div><!-- /footer --> | |
</div> | |
</body> | |
</html> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment