index.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <!--
  3. **************
  4. This file defines the static UI structure for Qype S60 WRT widget
  5. Each view is defined as a separate div with 'view' class.
  6. Rest of the views are defined in corresponding js files:
  7. - LocationView.js for GPS Location View
  8. - CategoriesView.js for Categories View
  9. - PlacesView.js for Places View
  10. - etc
  11. Only exception is Loading View, that does not have a separate js file.
  12. Loading view is controlled as a part of application initialization in app.js
  13. ***************
  14. -->
  15. <html xmlns="http://www.w3.org/1999/xhtml">
  16. <head>
  17. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  18. <link rel="stylesheet" href="styles/main.css" />
  19. <script type="text/javascript" src="simdata/location.js"></script>
  20. <script type="text/javascript" src="scripts/namespace.js"></script>
  21. <script type="text/javascript" src="strings.js"></script>
  22. <script type="text/javascript" src="scripts/prototype.1.6.1.min.js"></script>
  23. <script type="text/javascript" src="scripts/platformservices.js"></script>
  24. <script type="text/javascript" src="config/config.js"></script>
  25. <script type="text/javascript" src="scripts/util.js"></script>
  26. <script type="text/javascript" src="scripts/wrtpressurize.js"> </script>
  27. <script type="text/javascript" src="scripts/Screen.js"></script>
  28. <script type="text/javascript" src="scripts/EventManager.js"></script>
  29. <script type="text/javascript" src="scripts/Engine.js"></script>
  30. <script type="text/javascript" src="scripts/Snippet.js"></script>
  31. <script type="text/javascript" src="scripts/View.js"></script>
  32. <script type="text/javascript" src="scripts/PlaceModel.js"> </script>
  33. <script type="text/javascript" src="scripts/LocationView.js"> </script>
  34. <script type="text/javascript" src="scripts/PlaceView.js"> </script>
  35. <script type="text/javascript" src="scripts/MapTileView.js"> </script>
  36. <script type="text/javascript" src="scripts/CategoriesView.js"> </script>
  37. <script type="text/javascript" src="scripts/PlacesView.js"> </script>
  38. <script type="text/javascript" src="scripts/QypeApi.js"> </script>
  39. <script type="text/javascript" src="scripts/app.js"> </script>
  40. <title>Qype</title>
  41. </head>
  42. <!--
  43. In case you are interested on what's happening when the app is launched:
  44. qype -object and onload() -function is defined in app.js
  45. -->
  46. <body onload="qype.onload();" onresize="qype.onresize();">
  47. <!-- **************
  48. APPLICATION HEADER
  49. *************** -->
  50. <div class="header">
  51. <div class="button left" id="mainButtonLeft" onclick="EventManager.publish({ name: 'mainButtonClick', type: 'left' })">Home</div>
  52. <div class="button right" id="mainButtonRight" onclick="EventManager.publish({ name: 'mainButtonClick', type: 'right' })"></div>
  53. </div>
  54. <div id="container" class="content">
  55. <!-- **************
  56. LOADING VIEW: Displayed when application is launched
  57. *************** -->
  58. <div id="loadingView" class="view splash">
  59. <div class="progress"></div>
  60. <div id="loadingStatus">Loading...</div>
  61. </div>
  62. <!-- **************
  63. GPS LOCATE VIEW: Displayed when user selects to update GPS location
  64. *************** -->
  65. <div id="locationView" class="view location">
  66. <div class="progress"></div>
  67. <div id="holder" style="position: fixed; width: 100%; height: 100%; top: 0; left: 0; z-index: 10;"></div>
  68. <div id="locationStatus">Receiving...</div>
  69. </div>
  70. <!-- **************
  71. CATEGORIES VIEW: Displayed when user clicks 'categories' button in main view
  72. *************** -->
  73. <div id="categoriesView" class="view categories">
  74. <div class="title">
  75. <div class="text" id="categoriesHeader"></div>
  76. </div>
  77. <div class="items" id="categoriesContent">
  78. </div>
  79. </div>
  80. <!-- **************
  81. PLACES VIEW: Main view (list of nearby places)
  82. *************** -->
  83. <div id="placesView" class="view places">
  84. <div class="link">
  85. <div class="text" id="categoriesLink"></div>
  86. </div>
  87. <div class="title">
  88. <div class="text" id="placesHeader"></div>
  89. <div class="button map" style="display: none" onclick="EventManager.publish({name:'mapLinkClicked'})">Map</div>
  90. </div>
  91. <div class="items" id="placesContent">
  92. </div>
  93. <div class="footer">
  94. <div class="action button" onclick="EventManager.publish({name:'locationButtonClicked'})"><div class="text">Refresh GPS</div></div>
  95. </div>
  96. </div>
  97. <!-- **************
  98. PLACE VIEW: Displayed when user selects single place from main view
  99. *************** -->
  100. <div id="placeView" class="view place">
  101. <div id="placeContent"></div>
  102. </div>
  103. <!-- **************
  104. MAP VIEW: Displayed when user pushes 'map' button in any view
  105. *************** -->
  106. <div id="mapView" class="view">
  107. <div id="mobileMap"></div>
  108. </div>
  109. </div>
  110. </body>
  111. </html>