move debug output to console.log; make DB upgrade work more reasonably
[lantea.git] / index.html
index a84b85824a864a98d96a4660ba2ca5c7f3da6157..d5a79757b215420a62ef5709f07fb2f4397ce674 100644 (file)
@@ -1,13 +1,72 @@
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+   - License, v. 2.0. If a copy of the MPL was not distributed with this file,
+   - You can obtain one at http://mozilla.org/MPL/2.0/.  -->
+
 <!DOCTYPE html>
 <html manifest="manifest.appcache">
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-  <title>Lantea</title>
-  <!-- script src="js/lantea.js"></script -->
-  <!-- link rel="stylesheet" href="style/lantea.css" -->
+  <!-- try to counts default scaling on mobile, see 
+       https://developer.mozilla.org/en/Mobile/Viewport_meta_tag -->
+  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=.6667, maximum-scale=.6667">
+  <title>Lantea Maps</title>
+  <script src="js/map.js"></script>
+  <script src="js/ui.js"></script>
+  <link rel="stylesheet" href="style/lantea.css">
+  <link rel="shortcut icon" href="style/lanteaIcon16.png" type="image/png">
 </head>
-<body>
-<h1>Lantea</h1>
+<body id="body">
+<h1>Lantea Map</h1>
+
+<div id="menuArea" class="overlayArea">
+<input type="button" id="trackButton" value="Track"
+       onclick="toggleTrackArea();"><br/>
+<fieldset id="trackArea"><legend>Track</legend>
+<input type="button" id="saveTrackButton" value="Save"
+       onclick="saveTrack();">
+<input type="button" id="dumpTrackButton" value="Dump"
+       onclick="saveTrackDump();" class="debugHide">
+<input type="button" id="clearTrackButton" value="Clear"
+       onclick="clearTrack();"><br/>
+<input type="checkbox" id="trackCheckbox"
+       onchange="setTracking(this);">
+<label for="trackCheckbox">Enable tracking</label><br/>
+<input type="checkbox" id="centerCheckbox"
+       onchange="setCentering(this);">
+<label for="centerCheckbox">Center Map</label><br/>
+</fieldset>
+<input type="button" id="settingsButton" value="Settings"
+       onclick="toggleSettings();"><br/>
+<fieldset id="settingsArea"><legend>Settings</legend>
+Map style:
+<select id="mapSelector" onchange="setMapStyle();">
+<!-- option value="osm_mapnik">OpenStreetMap (Mapnik)</option -->
+</select>
+</fieldset>
+</div>
+
+<div id="zoomArea" class="overlayArea">
+<input type="button" id="zoomInButton" value="+"
+       onclick="zoomIn();"><br/>
+<span id="zoomLevel">Z</span><br/>
+<input type="button" id="zoomOutButton" value="-"
+       onclick="zoomOut();">
+</div>
+
+<div id="fullscreenArea" class="overlayArea">
+<!-- other possible characters: &#x25F0; -->
+<input type="button" id="fullscreenButton" value="&#x25A3;"
+       onclick="toggleFullscreen();">
+</div>
+
+<p id="debug" class="debugHide"></p>
+<p id="copyright" class="overlayArea"></p>
 
+<canvas id="map" width="500" height="500">
+  Please use a browser that supports &lt;canvas&gt; elements.
+</canvas>
+<canvas id="track" width="500" height="500">
+</canvas>
 
-</body></html>
\ No newline at end of file
+</body>
+</html>
\ No newline at end of file