diff options
Diffstat (limited to 'phonegap/www/js/mobile.js')
-rw-r--r-- | phonegap/www/js/mobile.js | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/phonegap/www/js/mobile.js b/phonegap/www/js/mobile.js index c50403bc5..7300e752c 100644 --- a/phonegap/www/js/mobile.js +++ b/phonegap/www/js/mobile.js @@ -1,22 +1,9 @@ -var urlParams = {}; -(function () { - var e, - a = /\+/g, // Regex for replacing addition symbol with a space - r = /([^&=]+)=?([^&]*)/g, - d = function (s) { return decodeURIComponent(s.replace(a, " ")); }, - q = window.location.search.substring(1); - - // do it this way to get round jslint complaints - for (;;) { - e = r.exec(q); - if (!e) { break; } - urlParams[d(e[1])] = d(e[2]); - } -})(); - function show_around( lat, long ) { pc = $('#pc').val(); - window.location='around.html?pc=' + pc + '&latitude=' + lat + '&longitude=' + long; + localStorage.latitude = lat; + localStorage.longitude = long; + localStorage.pc = pc; + window.location='around.html'; return false; } |