index.html 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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 based on geolocation" />
  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" class="ui-page">
  38. <div data-role="header" data-id="myHeader" data-position="fixed">
  39. <!-- <input type="button" onclick="getLocation()" value="Position"/> -->
  40. <a href="javascript:void(0);" data-role="button" onclick="getLocation()"
  41. id="home" class="ui-btn-left" data-mini="true" data-icon="home">Position</a>
  42. <h1 class="ui-title">MAPO</h1>
  43. <a data-role="button" id="exit" class="ui-btn-right-mini"
  44. data-icon="delete" onclick="quit()">Exit</a>
  45. <div data-role="navbar">
  46. <ul>
  47. <li><a href="#position" class="ui-btn-active ui-state-persist">Position</a></li>
  48. <li><a href="#map">Map</a></li>
  49. <li><a href="#settings">Settings</a></li>
  50. </ul>
  51. </div>
  52. <!-- /navbar -->
  53. </div>
  54. <!-- /header -->
  55. <div data-role="content">
  56. <form>
  57. <table>
  58. <tr>
  59. <td><label for=lat>Latitude N+/S-:</label></td>
  60. <td><input type="text" id="lat" value="26.357865"
  61. onChange="changeLat(lat.value);"/></td>
  62. </tr>
  63. <tr>
  64. <td><label for=lon>Longitude W+/E-:</label></td>
  65. <td><input type="text" id="lon" value="127.783782"
  66. onChange="changeLon();"/></td>
  67. </tr>
  68. </table>
  69. <label for="dms">DMS (degree, minutes, seconds):</label>
  70. <input type="text" id="dms" value="N 26° 21' 28&quot; E 127° 47' 1&quot;"
  71. onChange="changeDMS();"/>
  72. <table>
  73. <tr>
  74. <td><label for="switchRecord">Record your course:</label></td>
  75. <td><select name="switchRecord" id="switchRecord"
  76. data-role="slider" onchange="record()">
  77. <option value="stop">Stop</option>
  78. <option value="start">Start</option>
  79. </select></td>
  80. </tr>
  81. </table>
  82. <p id="locationInfo"></p>
  83. </form>
  84. <div data-role="collapsible" data-collapsed="true">
  85. <h3>Web Links</h3>
  86. <div data-role="controlgroup">
  87. <button onclick="goToURL('OSM')">OpenStreetMap</button>
  88. <button onclick="goToURL('GM')">Google Maps</button>
  89. <button onclick="goToURL('NOKIA')">Nokia Here</button>
  90. </div>
  91. </div>
  92. </div>
  93. <!-- /content -->
  94. <div data-role="footer" data-id="myFooter" data-position="fixed">
  95. Copyleft: GPL-3.0+ : 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" class="ui-page">
  101. <div data-role="header" data-id="myHeader" data-position="fixed">
  102. <a href="javascript:void(0);" data-role="button" onclick="getLocation()"
  103. id="home" class="ui-btn-left" data-icon="home">Position</a>
  104. <h1 class="ui-title">MAPO</h1>
  105. <a data-role="button" id="exit" class="ui-btn-right"
  106. data-icon="delete" onclick="quit()">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. Copyleft: GPL-3.0+ : http://gitorious.org/mapo</div>
  123. <!-- /footer -->
  124. </div>
  125. <!-- /page #place-->
  126. <!-- Page 3 : Settings -->
  127. <div data-role="page" id="settings" class="ui-page">
  128. <div data-role="header" data-id="myHeader" data-position="fixed">
  129. <a href="javascript:void(0);" data-role="button" onclick="getLocation()"
  130. id="home" class="ui-btn-left" data-icon="home">Position</a>
  131. <h1 class="ui-title">MAPO</h1>
  132. <a data-role="button" id="exit" class="ui-btn-right"
  133. data-icon="delete" onclick="quit()">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">
  161. <option value="off">Off</option>
  162. <option value="on">On</option>
  163. </select>
  164. </td>
  165. </tr>
  166. </table>
  167. <label for="selectorTimeout">Recording timeout (seconds):</label>
  168. <input type="range" name="selectorTimeout" id="selectorTimeout"
  169. value="10" min="1" max="100"/>
  170. <div data-role="collapsible" data-collapsed="true">
  171. <h3>Share</h3>
  172. <div data-role="controlgroup">
  173. <button onclick="sendEmail()">Email</button>
  174. <button onclick="call()">Call</button>
  175. <button onclick="createContact()">Contact</button>
  176. <button onclick="createCalendarEvent()">Calendar</button>
  177. <button onclick="sendMessage()">Message</button>
  178. <!-- <button onclick="sendBluetooth()">Bluetooth</button> -->
  179. </div>
  180. </div>
  181. </div>
  182. <!-- /content -->
  183. <div data-role="footer" data-id="myFooter" data-position="fixed">
  184. Copyleft: GPL-3.0+ : http://gitorious.org/mapo
  185. </div>
  186. <!-- /footer -->
  187. </div>
  188. <!-- /page #options-->
  189. </body>
  190. </html>