-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.html
223 lines (205 loc) · 14 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<!--
geoJoy by Claim Soluciones, S.C.P. is licensed under a GNU General Public License, version 3 (GPL v3).
Permissions beyond the scope of this license may be available at http://www.claimsoluciones.com.
License Info: http://www.opensource.org/licenses/gpl-3.0.html
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA Compatible" content="IE=edge,chrome=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<title>geoJoy</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.css" />
<link rel="apple-touch-icon-precomposed" href="img/icon.png">
<link rel="apple-touch-startup-image" href="img/splash.png">
<link rel="stylesheet" href="css/geojoy.css">
<script src="http://code.jquery.com/jquery-1.4.3.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.js"></script>
<script src="http://maps.google.com/maps/api/js?sensor=true" type="text/javascript"></script>
<script src="js/geoJoy.js" type="text/javascript"></script>
<!-- DELETE THIS IF YOU ARE FORKING, DEVELOPING AND/OR HOSTING ON YOUR OWN!
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21568307-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
DELETE THIS IF YOU ARE FORKING, DEVELOPING AND/OR HOSTING ON YOUR OWN! -->
</head>
<body class="index" onload="getStorageQty()">
<div data-role="page" id="home">
<header data-nobackbtn="true" data-role="header">
<h1><img src="img/title.png" alt="geoJoy"></h1>
</header>
<div data-role="content">
<ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="a">
<li data-icon="map-mark">
<a href="#add" onclick="currentLoc()" title="View location">Current position</a>
</li>
<li data-icon="grid">
<a href="#loc_mgmt" title="Your locations">Saved items</a>
<span class="ui-li-count" id="storageQty"></span>
</li>
</ul>
<ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="a">
<li data-role="list-divider">
<h2>About</h2>
</li>
<li>
<a href="#howto" title="How to use this app">Help</a>
</li>
<li>
<a href="#info" title="About us">Info</a>
</li>
</ul>
</div>
</div>
<div data-role="page" id="loc_mgmt">
<header data-nobackbtn="true" data-role="header" name="header">
<h1><img src="img/title.png" alt="geoJoy"></h1>
</header>
<div data-role="content" id="content">
<div id="toolbar" data-role="controlgroup" data-type="horizontal"><a href="#home" title="Back home" data-role="button" data-icon="refresh" data-theme="c" class="toolbar_link" data-transition="slide">home</a><a href="#add" title="Add new item" data-role="button" data-icon="map-mark" data-theme="c" class="toolbar_link" data-transition="fade" >add</a><a href="#loc_mgmt" title="Manage items" data-role="button" data-icon="grid" data-theme="c" class="toolbar_link" data-transition="fade">manage</a></div>
<ul data-role="listview" id="locationItems" data-inset="true" data-theme="c" data-dividertheme="a">
<li data-role="list-divider" id="list_header"><h2>Items</h2></li>
<li data-role="list-divider" class="itemsTitle" id="architecture">Architecture</li>
<li data-role="list-divider" class="itemsTitle" id="art">Arts & Crafts</li>
<li data-role="list-divider" class="itemsTitle" id="education">Education</li>
<li data-role="list-divider" class="itemsTitle" id="entertainment">Entertainment</li>
<li data-role="list-divider" class="itemsTitle" id="family">Family</li>
<li data-role="list-divider" class="itemsTitle" id="food">Food</li>
<li data-role="list-divider" class="itemsTitle" id="friends">Friends</li>
<li data-role="list-divider" class="itemsTitle" id="landscape">Landscape & View</li>
<li data-role="list-divider" class="itemsTitle" id="museum">Museum</li>
<li data-role="list-divider" class="itemsTitle" id="museum">Party</li>
<li data-role="list-divider" class="itemsTitle" id="professional">Professional</li>
<li data-role="list-divider" class="itemsTitle" id="shopping">Shopping</li>
<li data-role="list-divider" class="itemsTitle" id="techonology">Technology</li>
<li data-role="list-divider" class="itemsTitle" id="other">Other</li>
</ul>
<div id="geoMessage"></div>
<div data-type="horizontal" data-role="controlgroup">
<a data-icon="arrow-u" title="Scroll back to Top" data-role="button">Top of page</a>
<a href="#clear" data-icon="delete" title="Delete all entries" data-role="button">Clear all</a>
</div>
</div>
</div>
<div data-role="page" id="clear">
<header data-nobackbtn="true" data-role="header">
<h1><img src="img/title.png" alt="geoJoy"></h1>
</header>
<div data-role="content">
<div id="toolbar" data-role="controlgroup" data-type="horizontal"><a href="#home" title="Back home" data-role="button" data-icon="refresh" data-theme="c" class="toolbar_link" data-transition="slide">home</a><a href="#add" title="Add new item" data-role="button" data-icon="map-mark" data-theme="c" class="toolbar_link" data-transition="fade" >add</a><a href="#loc_mgmt" title="Manage items" data-role="button" data-icon="grid" data-theme="c" class="toolbar_link" data-transition="fade">manage</a></div>
<h3>Clear All Data</h3>
<p>Are you sure you want to delete all items?<br>This action can not be undone.</p>
<div data-type="horizontal" data-role="controlgroup">
<a href="#home" onclick="deleteAll()" title="Clear Records" data-icon="check" data-role="button">Yes</a>
<a href="#loc_mgmt" title="Cancel Deletion" data-icon="delete" data-role="button">Cancel</a>
</div>
</div>
</div>
<div data-role="page" id="add">
<header data-nobackbtn="true" data-role="header">
<h1><img src="img/title.png" alt="geoJoy"></h1>
</header>
<div data-role="content" id="geo_content">
<div id="toolbar" data-role="controlgroup" data-type="horizontal"><a href="#home" title="Back home" data-role="button" data-icon="refresh" data-theme="c" class="toolbar_link" data-transition="slide">home</a><a href="#add" title="Add new item" data-role="button" data-icon="map-mark" data-theme="c" class="toolbar_link" data-transition="fade" >add</a><a href="#loc_mgmt" title="Manage items" data-role="button" data-icon="grid" data-theme="c" class="toolbar_link" data-transition="fade">manage</a></div>
<label for="nameInput">Item name:</label>
<input type="text" name="nameInput" id="nameInput">
<label for="selectType">Location type:</label>
<select name="selectType" id="selectType">
<option value="architecture">Architecture</option>
<option value="art">Arts & Crafts</option>
<option value="education">Education</option>
<option value="entertainment">Entertainment</option>
<option value="family">Family</option>
<option value="food">Food</option>
<option value="friends">Friends</option>
<option value="landscape">Landscape & View</option>
<option value="museum">Museum</option>
<option value="party">Party</option>
<option value="professional">Professional</option>
<option value="shopping">Shopping</option>
<option value="technology">Technology</option>
<option value="other">Other</option>
</select>
<input type="hidden" name="coordinates" id="coordinates">
<input type="hidden" name="itemId" id="itemId">
<div id="mapImage"></div>
<div data-role="button" id="geoButton" data-theme="a" onclick="getGeo()">Show map</div>
<div data-role="controlgroup" id="clearSaveButtons" style="display:none;" data-type="horizontal">
<div data-role="button" id="saveButton" data-theme="b" onclick="saveItem()" data-icon="check">Save Item</div>
<div data-role="button" id="clearButton" data-theme="c" onclick="clearItem()" data-icon="back">Clear Form</div>
</div>
</div>
</div>
<div data-role="page" id="itemView">
<header data-nobackbtn="true" data-role="header">
<h1><img src="img/title.png" alt="geoJoy"></h1>
</header>
<div data-role="content" id="itemContent">
<div id="toolbar" data-role="controlgroup" data-type="horizontal"><a href="#home" title="Back home" data-role="button" data-icon="refresh" data-theme="c" class="toolbar_link" data-transition="slide">home</a><a href="#add" title="Add new item" data-role="button" data-icon="map-mark" data-theme="c" class="toolbar_link" data-transition="fade" >add</a><a href="#loc_mgmt" title="Manage items" data-role="button" data-icon="grid" data-theme="c" class="toolbar_link" data-transition="fade">manage</a></div>
<ul data-role="listview" data-theme="c" data-dividertheme="a">
<li data-role="list-divider" id="itemListType">Type</li>
<li data-role="list-divider" id="itemListName">Name</li>
</ul>
<div id="itemListMap"></div>
<div>
<a href="#delItem" data-icon="delete" data-role="button">Delete Item</a>
</div>
<input type="hidden" name="itemKey" id="itemKey">
</div>
</div>
<div data-role="page" id="delItem">
<header data-nobackbtn="true" data-role="header">
<h1><img src="img/title.png" alt="geoJoy"></h1>
</header>
<div data-role="content">
<div id="toolbar" data-role="controlgroup" data-type="horizontal"><a href="#home" title="Back home" data-role="button" data-icon="refresh" data-theme="c" class="toolbar_link" data-transition="slide">home</a><a href="#add" title="Add new item" data-role="button" data-icon="map-mark" data-theme="c" class="toolbar_link" data-transition="fade" >add</a><a href="#loc_mgmt" title="Manage items" data-role="button" data-icon="grid" data-theme="c" class="toolbar_link" data-transition="fade">manage</a></div>
<p>Are you sure you want to delete the item <span id="item2Del"></span>?</p>
<div data-role="controlgroup" data-type="horizontal">
<a href="#home" onclick="deleteItem()" title="Clear Item" data-icon="check" data-role="button">Yes</a>
<a href="#itemView" title="Cancel Deletion" data-icon="delete" data-role="button">Cancel</a>
</div>
<input id="itemKey2Del" type="hidden">
</div>
</div>
<div data-role="page" id="howto">
<header data-nobackbtn="true" data-role="header">
<h1><img src="img/title.png" alt="geoJoy"></h1>
</header>
<div data-role="content">
<div id="toolbar" data-role="controlgroup" data-type="horizontal"><a href="#home" title="Back home" data-role="button" data-icon="refresh" data-theme="c" class="toolbar_link" data-transition="slide">home</a><a href="#add" title="Add new item" data-role="button" data-icon="map-mark" data-theme="c" class="toolbar_link" data-transition="fade" >add</a><a href="#loc_mgmt" title="Manage items" data-role="button" data-icon="grid" data-theme="c" class="toolbar_link" data-transition="fade">manage</a></div>
<h2>Hello User!</h2>
<p>First of all we want to thank you for using this app. A lot of curiosity and work has gone in this project and we are really grateful for people like you that load and use it.</p>
<p>Now, to go to the point, let us tell you that this is a very easy and straightforward utility to operate. The main menu is divided in the two main functions of the app:</p>
<ul>
<li>Add a new item</li>
<li>Manage saved items</li>
</ul>
<p>The first function, -Add a new item-, is strictly what it means. A new screen will slide in, with two inputs and a button. The first input is labeled as name and can be used however you want. It can be used to type in a brief descriptions or simply a two / three words name for the item. The second input is a drop down menu that offers a general category for the item. Finally, the button collects your current Geographical Position via your GPS, Cell Tower Triangulation or IP Address, whichever available and in that order.</p>
<p>Once you tap/click the button and you've given permission to give the app access to your geoLocation devices, a map image will appear with your geographical position marked. If that is right (which more or less will be) simply tap/click on the -Save item- button and your item will be saved locally in your phone.</p>
<p>The second function of the app, -Manage saved items-, reviews your phone's storage for this app in particular and looks for items of previously saved items, all listed by category. Once you see an item you want to review, simply tap/click on it and you will be shown all the information for that item: name, category and map image. In that same review screen you are given the option to delete the item.</p>
<p>That's pretty much all this app does. Even though it doesn't seem like much, we've learnt that, in the mobile development/design world, the rule of thumb is "less is more". We hope you enjoy this piece of code and invite you to review the -Info- page to see all the details, people and plans behind this project.</p>
<p>Best regards,</p>
<h3>Claim Soluciones</h3>
</div>
</div>
<div data-role="page" id="info">
<header data-nobackbtn="true" data-role="header">
<h1><img src="img/title.png" alt="geoJoy"></h1>
</header>
<div data-role="content">
<div id="toolbar" data-role="controlgroup" data-type="horizontal"><a href="#home" title="Back home" data-role="button" data-icon="refresh" data-theme="c" class="toolbar_link" data-transition="slide">home</a><a href="#add" title="Add new item" data-role="button" data-icon="map-mark" data-theme="c" class="toolbar_link" data-transition="fade" >add</a><a href="#loc_mgmt" title="Manage items" data-role="button" data-icon="grid" data-theme="c" class="toolbar_link" data-transition="fade">manage</a></div>
<p><a href="http://github.com/jakobhans/geojoy">geoJoy</a> by <a href="http://www.claimsoluciones.com">Claim Soluciones, S.C.P.</a> is licensed under a GNU General Public License, version 3 (GPL v3).
License Info: <a href="http://www.opensource.org/licenses/gpl-3.0.html">GNU General Public License, version 3 (GPLv3) @ OpenSource.org</a></p>
</div>
</div>
</body>
</html>