Created
July 31, 2013 03:19
-
-
Save rominirani/6119031 to your computer and use it in GitHub Desktop.
Episode #5 : Firefox OS Tutorial : map.html
This file contains hidden or 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> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Map Me</title> | |
<link rel="stylesheet" href="jquery.mobile-1.3.1.min.css" /> | |
<script src="jquery-1.7.1.min.js"></script> | |
<script src="jquery.mobile-1.3.1.min.js"></script> | |
<script src="https://maps.googleapis.com/maps/api/js?sensor=true"></script> | |
<script src="map-app.js"></script> | |
</head> | |
<body> | |
<!-- Start of first page: #home --> | |
<div data-role="page" id="home"> | |
<div data-role="header" data-position="fixed"> | |
<h3>Map Me</h3> | |
</div><!-- /header --> | |
<div data-role="content"> | |
<a href="#" id="btnLocateMe" data-role="button">LocateMe</a> | |
<div id="instruction">Click on the LocateMe button to retrieve the GPS Location and plot it on Google Map</div> | |
<div id="map-canvas"></div> | |
</div><!-- /content --> | |
</div><!-- /page home --> | |
<!-- Start of the second page that shows the map #map-page --> | |
<div data-role="page" id="map-page" data-add-back-btn="true"> | |
<div data-role=header> | |
<h1>Map</h1> | |
</div> | |
<div data-role="content"></div> | |
</div> <!-- /page map-page --> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment