summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js')
-rwxr-xr-xStoneIsland/www/js/index.js11
-rwxr-xr-xStoneIsland/www/js/lib/etc/geo.js2
-rwxr-xr-xStoneIsland/www/js/lib/nav/NavView.js3
3 files changed, 13 insertions, 3 deletions
diff --git a/StoneIsland/www/js/index.js b/StoneIsland/www/js/index.js
index 0770b0f6..4f1747ab 100755
--- a/StoneIsland/www/js/index.js
+++ b/StoneIsland/www/js/index.js
@@ -3,7 +3,7 @@ var app = (function(){
app.init = function(){
- sdk.init({ env: "test" })
+ sdk.init({ env: "production" })
app.bind()
app.build()
@@ -66,6 +66,8 @@ var app = (function(){
if (window.cordova) {
document.addEventListener('pause', app.paused, false)
document.addEventListener('resume', app.resumed, false)
+ document.addEventListener('online', app.online, false)
+ document.addEventListener('offline', app.offline, false)
cordova.plugins.Keyboard.disableScroll(true)
geo.fetch()
}
@@ -92,6 +94,13 @@ var app = (function(){
}
}
+ app.online = function(){
+ console.log(">> ONLINE")
+ }
+ app.offline = function(){
+ console.log(">> OFFLINE")
+ }
+
return app
})()
diff --git a/StoneIsland/www/js/lib/etc/geo.js b/StoneIsland/www/js/lib/etc/geo.js
index 5af9ecfd..885a1c6c 100755
--- a/StoneIsland/www/js/lib/etc/geo.js
+++ b/StoneIsland/www/js/lib/etc/geo.js
@@ -10,7 +10,7 @@ var geo = (function(){
geo.success = function(position){
var lat_str = as_degrees( position.coords.latitude || 40.99167, "N", "S" )
- var lng_str = as_degrees( position.coords.longitude || -74.07944, "W", "E" )
+ var lng_str = as_degrees( position.coords.longitude || -74.07944, "E", "W" )
$(".latlng").html( lat_str + "     " + lng_str )
geo.done()
}
diff --git a/StoneIsland/www/js/lib/nav/NavView.js b/StoneIsland/www/js/lib/nav/NavView.js
index fc373858..f3818b7f 100755
--- a/StoneIsland/www/js/lib/nav/NavView.js
+++ b/StoneIsland/www/js/lib/nav/NavView.js
@@ -134,7 +134,8 @@ var NavView = View.extend({
this.hide()
app.router.go("page/terms")
},
- care: function(){
+ care: function(e){
+ e.preventDefault()
window.open("http://www.stoneisland.com/localize.asp?tskay=4036416C&page=help/home&deviceYeti=smartphone", '_system')
},