34 lines
925 B
HTML
34 lines
925 B
HTML
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<title>Demo géolocalisation 4</title>
|
|
<link rel="stylesheet" href="geo.css" />
|
|
<script data-main="geo4" src="require.min.js"></script>
|
|
</head>
|
|
|
|
<body>
|
|
<h1>Step 4: add Require.js</h1>
|
|
<p>Same code as <a href="../geo3">geo3</a>, but uses
|
|
<a href="http://requirejs.org/">RequireJS</a>
|
|
for dependency inclusion: this minimizes the amount of JavaScript code
|
|
embedded in the HTML.</p>
|
|
|
|
<h2>Results</h2>
|
|
<div id="geo"></div>
|
|
|
|
<h2>Sources</h2>
|
|
<ul>
|
|
<li><a href="Geo.js">Geo object</a></li>
|
|
<li><a href="MessageElement.js">MessageElement object</a></li>
|
|
<li><a href="geo4.js">Wrapper script</a></li>
|
|
</ul>
|
|
|
|
<div class="navbar">
|
|
<h2>Navigation</h2>
|
|
<ul>
|
|
<li><a href="../geo3">Previous</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|