Skip to content

Instantly share code, notes, and snippets.

@Rockncoder
Created July 2, 2012 15:03
Show Gist options
  • Select an option

  • Save Rockncoder/3033678 to your computer and use it in GitHub Desktop.

Select an option

Save Rockncoder/3033678 to your computer and use it in GitHub Desktop.
PGCompass - PhoneGap, jQuery Mobile, and the compass device
<!DOCTYPE html>
<html>
<head>
<title>pg-compass</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta http-equiv="Content-Type" content="text/html" charset="utf-8"/>
<link href="content/jquery.mobile-1.1.0.min.css" rel="stylesheet" type="text/css" />
<link href="content/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" charset="utf-8" src="cordova-1.7.0.js"></script>
<script src="scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="scripts/jquery.mobile-1.1.0.min.js" type="text/javascript"></script>
</head>
<body>
<div id="page1" data-role="page">
<header data-role="header" data-position="fixed">
<h1></h1>
</header>
<section data-role="content" style="padding: 10px 0;">
<img id="compass" class="Center" src="images/compass320.png" />
</section>
</div>
<script src="scripts/app.js" type="text/javascript"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment