index.html 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <!--
  2. Copyright (c) 2013 Mapo developpers and contributors <mapo.tizen@gmail.com>
  3. This file is part of Mapo.
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. -->
  15. <!DOCTYPE html>
  16. <html>
  17. <head>
  18. <meta charset="utf-8" />
  19. <meta name="viewport"
  20. content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  21. <meta name="description" content="An application" />
  22. <title>MAPO</title>
  23. <link rel="stylesheet" href="./css/jquery.mobile-1.2.0.css" />
  24. <link rel="stylesheet" href="./css/Mapo.css" />
  25. <link rel="stylesheet" href="./css/style.css" />
  26. <script type="text/javascript"
  27. src="http://openlayers.org/api/OpenLayers.js"></script>
  28. <script type="text/javascript"
  29. src="http://maps.google.com/maps/api/js?v=3.2&sensor=false"></script>
  30. <script type="text/javascript" src="./js/jquery-1.8.2.js"></script>
  31. <script type="text/javascript" src="./js/jquery.mobile-1.2.0.js"></script>
  32. <script type="text/javascript" src="./js/main.js"></script>
  33. <script type="text/javascript" src="./lib.js"></script>
  34. </head>
  35. <body>
  36. <!-- Page 1 : My position -->
  37. <div data-role="page" id="position">
  38. <div data-role="header" data-id="myHeader" data-position="fixed">
  39. <a href="#position" data-role="button" id="home" class="ui-btn-left"
  40. data-icon="home">Home</a>
  41. <h1 class="ui-title">MAPO</h1>
  42. <a data-role="button" id="exit" class="ui-btn-right"
  43. data-icon="delete" onclick="exit()">Exit</a>
  44. <div data-role="navbar">
  45. <ul>
  46. <li><a href="#position" class="ui-btn-active ui-state-persist">Position</a></li>
  47. <li><a href="#map">Map</a></li>
  48. <li><a href="#settings">Settings</a></li>
  49. </ul>
  50. </div>
  51. <!-- /navbar -->
  52. </div>
  53. <!-- /header -->
  54. <div data-role="content">
  55. <form>
  56. <table>
  57. <tr>
  58. <td><label for=lat>Latitude N+/S-:</label></td>
  59. <td><input type="text" id="lat" value="26.357865" onChange="set(lat.value, lon.value);" /></td>
  60. </tr>
  61. <tr>
  62. <td><label for=lon>Longitude W+/E-:</label></td>
  63. <td><input type="text" id="lon" value="127.783782" onChange="set(lat.value, lon.value);" /></td>
  64. </tr>
  65. <tr>
  66. <td><label for="OSMLink">OpenStreetMap Link:</label></td>
  67. <td><input type="text" id="OSMLink" /></td>
  68. </tr>
  69. <tr>
  70. <td><label for="GMLink">Google Maps Link:</label></td>
  71. <td><input type="text" id="GMLink" /></td>
  72. </tr>
  73. <tr>
  74. <td><label for="wgs">wgs84 (degree,minutes,seconds):</label></td>
  75. <td><input type="text" id="wgs" value="wgs84 ( degree, minutes, seconds)" /></td>
  76. </tr>
  77. <tr>
  78. <td>
  79. <label for="switchRecord">Record your course:</label>
  80. </td>
  81. <td>
  82. <select name="switchRecord" id="switchRecord" data-role="slider" onchange="record()">
  83. <option value="stop">Stop</option>
  84. <option value="start">Start</option>
  85. </select>
  86. </td>
  87. </tr>
  88. </table>
  89. <input type="button" onclick="getLocation()" value="Get your position"/>
  90. <p id="location"></p>
  91. </form>
  92. </div>
  93. <!-- /content -->
  94. <div data-role="footer" data-id="myFooter" data-position="fixed">
  95. Open Source Project : http://gitorious.org/mapo</div>
  96. <!-- /footer -->
  97. </div>
  98. <!-- /page #position-->
  99. <!-- Page 2 : Search a place -->
  100. <div data-role="page" id="map">
  101. <div data-role="header" data-id="myHeader" data-position="fixed">
  102. <a href="#position" data-role="button" id="home" class="ui-btn-left"
  103. data-icon="home">Home</a>
  104. <h1 class="ui-title">MAPO</h1>
  105. <a data-role="button" id="exit" class="ui-btn-right"
  106. data-icon="delete" onclick="exit()">Exit</a>
  107. <div data-role="navbar">
  108. <ul>
  109. <li><a href="#position">Position</a></li>
  110. <li><a href="#map" class="ui-btn-active ui-state-persist">Map</a></li>
  111. <li><a href="#settings">Settings</a></li>
  112. </ul>
  113. </div>
  114. <!-- /navbar -->
  115. </div>
  116. <!-- /header -->
  117. <div data-role="content">
  118. <div id="myMap"></div>
  119. </div>
  120. <!-- /content -->
  121. <div data-role="footer" data-id="myFooter" data-position="fixed">
  122. Open Source Project : http://gitorious.org/mapo</div>
  123. <!-- /footer -->
  124. </div>
  125. <!-- /page #place-->
  126. <!-- Page 3 : Options -->
  127. <div data-role="page" id="settings">
  128. <div data-role="header" data-id="myHeader" data-position="fixed">
  129. <a href="#position" data-role="button" id="home" class="ui-btn-left"
  130. data-icon="home">Home</a>
  131. <h1 class="ui-title">MAPO</h1>
  132. <a data-role="button" id="exit" class="ui-btn-right"
  133. data-icon="delete" onclick="exit()">Exit</a>
  134. <div data-role="navbar">
  135. <ul>
  136. <li><a href="#position">Position</a></li>
  137. <li><a href="#map">Map</a></li>
  138. <li><a href="#settings" class="ui-btn-active ui-state-persist">Settings</a></li>
  139. </ul>
  140. </div>
  141. <!-- /navbar -->
  142. </div>
  143. <!-- /header -->
  144. <div data-role="content">
  145. <table>
  146. <tr>
  147. <td><label for="switchOnline">Connection:</label></td>
  148. <td>
  149. <select name="switchOnline" id="switchOnline"
  150. data-role="slider" onchange="switchOnline()">
  151. <option value="offline">Offline</option>
  152. <option value="online">Online</option>
  153. </select>
  154. </td>
  155. <tr>
  156. <tr>
  157. <td><label for="switchEnergy">Energy saving:</label></td>
  158. <td>
  159. <select name="switchEnergy" id="switchEnergy"
  160. data-role="slider" onchange="switchEnergy()">
  161. <option value="off">Off</option>
  162. <option value="on">On</option>
  163. </select>
  164. </td>
  165. </tr>
  166. <tr>
  167. <td></td>
  168. </tr>
  169. </table>
  170. <label for="sliderFrequency">Recording frequency (seconds):</label>
  171. <input type="range" name="sliderFrequency" id="sliderFrequency" value="10" min="1" max="100" onchange="setFrequency()"/>
  172. </div>
  173. <!-- /content -->
  174. <div data-role="footer" data-id="myFooter" data-position="fixed">
  175. Open Source Project : http://gitorious.org/mapo
  176. </div>
  177. <!-- /footer -->
  178. </div>
  179. <!-- /page #options-->
  180. </body>
  181. </html>