index.html 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. <!DOCTYPE html>
  2. <html>
  3. <!--
  4. Copyright (c) 2013 Mapo developers and contributors <mapo.tizen@gmail.com>
  5. This file is part of Mapo.
  6. This program is free software: you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation, either version 3 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. -->
  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="A geolocation application" />
  22. <title>Mapo</title>
  23. <link rel="stylesheet" href="./css/jquery.mobile-1.3.2.css" />
  24. <link rel="stylesheet" href="css/jqm-docs.css" />
  25. <script type="text/javascript" src="./js/jquery-1.9.1.js"></script>
  26. <script src="js/jqm-docs.js"></script>
  27. <script type="text/javascript" src="./js/jquery.mobile-1.3.2.js"></script>
  28. <script type="text/javascript">
  29. <!--
  30. var OpenLayers = null;
  31. var google = null;
  32. var gmaps = null;
  33. //-->
  34. </script>
  35. <script type="text/javascript" src="lib.js"></script>
  36. <script type="text/javascript" src="js/main.js"></script>
  37. <link rel="stylesheet" href="css/style.css" />
  38. </head>
  39. <body>
  40. <!-- Page 1 : My position -->
  41. <div data-role="page" id="position" class="ui-page">
  42. <div data-role="header" data-id="myHeader" data-position="fixed">
  43. <!-- <input type="button" onclick="getLocation()" value="Position"/> -->
  44. <a href="javascript:void(0);" data-role="button"
  45. onclick="getLocation()" id="home" class="ui-btn-left"
  46. data-mini="true" data-icon="home">Update</a>
  47. <h1 class="ui-title">MAPO</h1>
  48. <a data-role="button" id="exit" class="ui-btn-right-mini"
  49. data-icon="delete" onclick="quit()">Exit</a>
  50. <div data-role="navbar">
  51. <ul>
  52. <li><a href="#position" class="ui-btn-active ui-state-persist">Position</a></li>
  53. <li><a href="#map">Map</a></li>
  54. <li><a href="#settings">Settings</a></li>
  55. <li><a href="#about">About</a></li>
  56. </ul>
  57. </div>
  58. <!-- /navbar -->
  59. </div>
  60. <!-- /header -->
  61. <div data-role="content">
  62. <form>
  63. <table>
  64. <tr>
  65. <td><label for=lat>Latitude<br />N+/S-:
  66. </label></td>
  67. <td><input type="text" id="lat" value="26.357865"
  68. onChange="changeLat(lat.value);" /></td>
  69. </tr>
  70. <tr>
  71. <td><label for=lon>Longitude<br />W+/E-:
  72. </label></td>
  73. <td><input type="text" id="lon" value="127.783782"
  74. onChange="changeLon();" /></td>
  75. </tr>
  76. </table>
  77. <label for="dms">DMS (degree, minutes, seconds):</label> <input
  78. type="text" id="dms" value="N 26° 21' 28&quot; E 127° 47' 1&quot;"
  79. onChange="changeDMS();" />
  80. </form>
  81. <div data-role="collapsible" data-collapsed="true">
  82. <h3>Share:</h3>
  83. <div data-role="controlgroup">
  84. <button onclick="sendEmail()">Email</button>
  85. <button onclick="sendMessage()">Message</button>
  86. <button onclick="createCalendarEvent()">Calendar</button>
  87. <button onclick="createContact()">Contact</button>
  88. <button onclick="call()">Call</button>
  89. <!-- <button onclick="sendBluetooth()">Bluetooth</button> -->
  90. </div>
  91. </div>
  92. <div data-role="collapsible" data-collapsed="true">
  93. <h3>Web:</h3>
  94. <div data-role="controlgroup">
  95. <button onclick="goToURL('OSM')">OpenStreetMap</button>
  96. <button onclick="goToURL('HERE')">Here (Nokia)</button>
  97. <button onclick="goToURL('GM')">Google Maps</button>
  98. </div>
  99. </div>
  100. </div>
  101. <!-- /content -->
  102. <div data-role="footer" data-id="myFooter" data-position="fixed">
  103. Copyleft: GPL-3.0+ : http://opensource.eurogiciel.fr</div>
  104. <!-- /footer -->
  105. </div>
  106. <!-- /page #position-->
  107. <!-- Page 2 : Search a place -->
  108. <div data-role="page" id="map" class="ui-page">
  109. <div data-role="header" data-id="myHeader" data-position="fixed">
  110. <a href="javascript:void(0);" data-role="button"
  111. onclick="getLocation()" id="home" class="ui-btn-left"
  112. data-icon="home">Update</a>
  113. <h1 class="ui-title">MAPO</h1>
  114. <a data-role="button" id="exit" class="ui-btn-right"
  115. data-icon="delete" onclick="quit()">Exit</a>
  116. <div data-role="navbar">
  117. <ul>
  118. <li><a href="#position">Position</a></li>
  119. <li><a href="#map" class="ui-btn-active ui-state-persist">Map</a></li>
  120. <li><a href="#settings">Settings</a></li>
  121. <li><a href="#about">About</a></li>
  122. </ul>
  123. </div>
  124. <!-- /navbar -->
  125. </div>
  126. <!-- /header -->
  127. <div data-role="content">
  128. <div id="myMap">
  129. <a data-icon="delete" onclick="quit()"> Wont work if not online,
  130. please connect to internet before restarting application Exit</a>
  131. </div>
  132. </div>
  133. <!-- /content -->
  134. <div data-role="footer" data-id="myFooter" data-position="fixed">
  135. Copyleft: GPL-3.0+ : http://opensource.eurogiciel.fr</div>
  136. <!-- /footer -->
  137. </div>
  138. <!-- /page #place-->
  139. <!-- Page 3 : Settings -->
  140. <div data-role="page" id="settings" class="ui-page">
  141. <div data-role="header" data-id="myHeader" data-position="fixed">
  142. <a href="javascript:void(0);" data-role="button"
  143. onclick="getLocation()" id="home" class="ui-btn-left"
  144. data-icon="home">Update</a>
  145. <h1 class="ui-title">MAPO</h1>
  146. <a data-role="button" id="exit" class="ui-btn-right"
  147. data-icon="delete" onclick="quit()">Exit</a>
  148. <div data-role="navbar">
  149. <ul>
  150. <li><a href="#position">Position</a></li>
  151. <li><a href="#map">Map</a></li>
  152. <li><a href="#settings" class="ui-btn-active ui-state-persist">Settings</a></li>
  153. <li><a href="#about">About</a></li>
  154. </ul>
  155. </div>
  156. <!-- /navbar -->
  157. </div>
  158. <!-- /header -->
  159. <div data-role="content">
  160. <table width="100%">
  161. <tr>
  162. <td><label for="switchOnline">Connection:</label></td>
  163. <td><select name="switchOnline" id="switchOnline"
  164. data-role="slider" onchange="switchOnline()">
  165. <option value="offline" selected>Offline</option>
  166. <option value="online">Online</option>
  167. </select></td>
  168. <tr>
  169. <tr>
  170. <td><label for="switchEnergy">Energy saving:</label></td>
  171. <td><select name="switchEnergy" id="switchEnergy"
  172. data-role="slider">
  173. <option value="off">Off</option>
  174. <option value="on" selected>On</option>
  175. </select></td>
  176. </tr>
  177. <tr>
  178. <td colspan="2"><label for="zoom">Zoom:</label> <input
  179. type="range" name="zoom" id="zoom" value="18" min="1" max="20"
  180. onchange="refresh()" /></td>
  181. </table>
  182. <div data-role="controlgroup">
  183. <button onclick="settings()">Settings</button>
  184. </div>
  185. <div data-role="collapsible" data-collapsed="true">
  186. <h3>Record:</h3>
  187. <div data-role="controlgroup">
  188. <table width="100%">
  189. <tr>
  190. <td><label for="switchRecord">Record:</label></td>
  191. <td><select name="switchRecord" id="switchRecord"
  192. data-role="slider" onchange="record()">
  193. <option value="stop">Stop</option>
  194. <option value="start">Start</option>
  195. </select></td>
  196. </tr>
  197. </table>
  198. <label for="selectorTimeout">Sampling rate (seconds):</label> <input
  199. type="range" name="selectorTimeout" id="selectorTimeout"
  200. value="10" min="1" max="100" />
  201. <p id="locationInfo"></p>
  202. </div>
  203. </div>
  204. </div>
  205. <!-- /content -->
  206. <div data-role="footer" data-id="myFooter" data-position="fixed">
  207. Copyleft: GPL-3.0+ : http://opensource.eurogiciel.fr</div>
  208. <!-- /footer -->
  209. </div>
  210. <!-- /page #options-->
  211. <!-- Page 3 : about -->
  212. <div data-role="page" id="about" class="ui-page">
  213. <div data-role="header" data-id="myHeader" data-position="fixed">
  214. <a href="javascript:void(0);" data-role="button"
  215. onclick="getLocation()" id="home" class="ui-btn-left"
  216. data-icon="home">Update</a>
  217. <h1 class="ui-title">MAPO</h1>
  218. <a data-role="button" id="exit" class="ui-btn-right"
  219. data-icon="delete" onclick="quit()">Exit</a>
  220. <div data-role="navbar">
  221. <ul>
  222. <li><a href="#position">Position</a></li>
  223. <li><a href="#map">Map</a></li>
  224. <li><a href="#settings">Settings</a></li>
  225. <li><a href="#about" class="ui-btn-active ui-state-persist">About</a></li>
  226. </ul>
  227. </div>
  228. <!-- /navbar -->
  229. </div>
  230. <!-- /header -->
  231. <div>
  232. Mapo is geolocation application, licenced under GPL-3.0+
  233. <h3>CREDITS / THANKS</h3>
  234. <ul>
  235. <li>Philippe Coval
  236. <li>Theo Gerin
  237. <li>Sebastien Bocahu
  238. <li>Eurogiciel Opensource Dept
  239. <li>OpenLayers.org
  240. <li>maps.google.com
  241. </ul>
  242. </div>
  243. <div data-role="collapsible" data-collapsed="true">
  244. <h3>Log:</h3>
  245. <div data-role="controlgroup">
  246. <div id="console"></div>
  247. </div>
  248. <!-- /content -->
  249. <div data-role="footer" data-id="myFooter" data-position="fixed">
  250. Copyleft: GPL-3.0+ : http://opensource.eurogiciel.fr</div>
  251. <!-- /footer -->
  252. </div>
  253. </div>
  254. <!-- /page #options-->
  255. <!-- cache version -->
  256. <script src="http://openlayers.org/api/OpenLayers.js"></script>
  257. <script src="http://maps.google.com/maps/api/js?v=3.2&sensor=false"></script>
  258. </body>
  259. </html>