index.html 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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"
  41. onclick="getLocation()" id="home" class="ui-btn-left"
  42. data-mini="true" data-icon="home">Update</a>
  43. <h1 class="ui-title">MAPO</h1>
  44. <a data-role="button" id="exit" class="ui-btn-right-mini"
  45. data-icon="delete" onclick="quit()">Exit</a>
  46. <div data-role="navbar">
  47. <ul>
  48. <li><a href="#position" class="ui-btn-active ui-state-persist">Position</a></li>
  49. <li><a href="#map">Map</a></li>
  50. <li><a href="#settings">Settings</a></li>
  51. </ul>
  52. </div>
  53. <!-- /navbar -->
  54. </div>
  55. <!-- /header -->
  56. <div data-role="content">
  57. <form>
  58. <table>
  59. <tr>
  60. <td><label for=lat>Latitude N+/S-:</label></td>
  61. <td><input type="text" id="lat" value="26.357865"
  62. onChange="changeLat(lat.value);" /></td>
  63. </tr>
  64. <tr>
  65. <td><label for=lon>Longitude W+/E-:</label></td>
  66. <td><input type="text" id="lon" value="127.783782"
  67. onChange="changeLon();" /></td>
  68. </tr>
  69. </table>
  70. <label for="dms">DMS (degree, minutes, seconds):</label> <input
  71. type="text" id="dms" value="N 26° 21' 28&quot; E 127° 47' 1&quot;"
  72. onChange="changeDMS();" />
  73. </form>
  74. <div data-role="collapsible" data-collapsed="true">
  75. <h3>Share:</h3>
  76. <div data-role="controlgroup">
  77. <button onclick="sendEmail()">Email</button>
  78. <button onclick="sendMessage()">Message</button>
  79. <button onclick="createCalendarEvent()">Calendar</button>
  80. <button onclick="createContact()">Contact</button>
  81. <button onclick="call()">Call</button>
  82. <!-- <button onclick="sendBluetooth()">Bluetooth</button> -->
  83. </div>
  84. </div>
  85. <div data-role="collapsible" data-collapsed="true">
  86. <h3>Web:</h3>
  87. <div data-role="controlgroup">
  88. <button onclick="goToURL('OSM')">OpenStreetMap</button>
  89. <button onclick="goToURL('HERE')">Here (Nokia)</button>
  90. <button onclick="goToURL('GM')">Google Maps</button>
  91. </div>
  92. </div>
  93. </div>
  94. <!-- /content -->
  95. <div data-role="footer" data-id="myFooter" data-position="fixed">
  96. Copyleft: GPL-3.0+ : http://opensource.eurogiciel.fr</div>
  97. <!-- /footer -->
  98. </div>
  99. <!-- /page #position-->
  100. <!-- Page 2 : Search a place -->
  101. <div data-role="page" id="map" class="ui-page">
  102. <div data-role="header" data-id="myHeader" data-position="fixed">
  103. <a href="javascript:void(0);" data-role="button"
  104. onclick="getLocation()" id="home" class="ui-btn-left"
  105. data-icon="home">Update</a>
  106. <h1 class="ui-title">MAPO</h1>
  107. <a data-role="button" id="exit" class="ui-btn-right"
  108. data-icon="delete" onclick="quit()">Exit</a>
  109. <div data-role="navbar">
  110. <ul>
  111. <li><a href="#position">Position</a></li>
  112. <li><a href="#map" class="ui-btn-active ui-state-persist">Map</a></li>
  113. <li><a href="#settings">Settings</a></li>
  114. </ul>
  115. </div>
  116. <!-- /navbar -->
  117. </div>
  118. <!-- /header -->
  119. <div data-role="content">
  120. <div id="myMap"></div>
  121. </div>
  122. <!-- /content -->
  123. <div data-role="footer" data-id="myFooter" data-position="fixed">
  124. Copyleft: GPL-3.0+ : http://opensource.eurogiciel.fr/</div>
  125. <!-- /footer -->
  126. </div>
  127. <!-- /page #place-->
  128. <!-- Page 3 : Settings -->
  129. <div data-role="page" id="settings" class="ui-page">
  130. <div data-role="header" data-id="myHeader" data-position="fixed">
  131. <a href="javascript:void(0);" data-role="button"
  132. onclick="getLocation()" id="home" class="ui-btn-left"
  133. data-icon="home">Update</a>
  134. <h1 class="ui-title">MAPO</h1>
  135. <a data-role="button" id="exit" class="ui-btn-right"
  136. data-icon="delete" onclick="quit()">Exit</a>
  137. <div data-role="navbar">
  138. <ul>
  139. <li><a href="#position">Position</a></li>
  140. <li><a href="#map">Map</a></li>
  141. <li><a href="#settings" class="ui-btn-active ui-state-persist">Settings</a></li>
  142. </ul>
  143. </div>
  144. <!-- /navbar -->
  145. </div>
  146. <!-- /header -->
  147. <div data-role="content">
  148. <table width=100%>
  149. <tr>
  150. <td><label for="switchOnline">Connection:</label></td>
  151. <td><select name="switchOnline" id="switchOnline"
  152. data-role="slider" onchange="switchOnline()">
  153. <option value="offline" selected>Offline</option>
  154. <option value="online">Online</option>
  155. </select></td>
  156. <tr>
  157. <tr>
  158. <td><label for="switchEnergy">Energy saving:</label></td>
  159. <td><select name="switchEnergy" id="switchEnergy"
  160. data-role="slider">
  161. <option value="off">Off</option>
  162. <option value="on" selected>On</option>
  163. </select></td>
  164. </tr>
  165. <tr>
  166. <td><label for="switchRecord">Record:</label></td>
  167. <td><select name="switchRecord" id="switchRecord"
  168. data-role="slider" onchange="record()">
  169. <option value="stop">Stop</option>
  170. <option value="start">Start</option>
  171. </select></td>
  172. </tr>
  173. </table>
  174. <label for="selectorTimeout">Sampling rate (seconds):</label> <input
  175. type="range" name="selectorTimeout" id="selectorTimeout" value="10"
  176. min="1" max="100" />
  177. <p id="locationInfo"></p>
  178. <p>Check system settings for more...</p>
  179. <div data-role="controlgroup">
  180. <button onclick="settings()">Settings</button>
  181. </div>
  182. </div>
  183. <!-- /content -->
  184. <div data-role="footer" data-id="myFooter" data-position="fixed">
  185. Copyleft: GPL-3.0+ : http://opensource.eurogiciel.fr</div>
  186. <!-- /footer -->
  187. </div>
  188. <!-- /page #options-->
  189. </body>
  190. </html>