31 lines
746 B
HTML
31 lines
746 B
HTML
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<title>Geolocation demo step 2</title>
|
|
<link rel="stylesheet" href="geo.css" />
|
|
</head>
|
|
|
|
<body>
|
|
<h1>Step 2: request current location</h1>
|
|
<p>Since we can check the Geolocation API from <a href="geo1.html">step 1</a>,
|
|
let us go one step further and use it to obtain geolocation information.</p>
|
|
|
|
<h2>Results</h2>
|
|
<div id="geo"></div>
|
|
|
|
<h2>Sources</h2>
|
|
<p><a href="geo2.js">Script</a></p>
|
|
|
|
<script src="geo2.js"></script>
|
|
|
|
|
|
<div class="navbar">
|
|
<h2>Navigation</h2>
|
|
<ul>
|
|
<li><a href="geo1">Previous</a></li>
|
|
<li><a href="geo3">Next</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|