summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/nav/IntroView.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/lib/nav/IntroView.js')
-rw-r--r--StoneIsland/www/js/lib/nav/IntroView.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/StoneIsland/www/js/lib/nav/IntroView.js b/StoneIsland/www/js/lib/nav/IntroView.js
index 346c3aef..7b726f6a 100644
--- a/StoneIsland/www/js/lib/nav/IntroView.js
+++ b/StoneIsland/www/js/lib/nav/IntroView.js
@@ -15,13 +15,13 @@ var IntroView = View.extend({
},
show: function(){
- this.$el.show()
+ document.body.className = "intro"
window.addEventListener("deviceorientation", this.orient)
+ this.orient({ alpha: 0 })
// get location..
},
hide: function(){
- this.$el.hide()
window.removeEventListener("deviceorientation", this.orient)
},
@@ -33,7 +33,7 @@ var IntroView = View.extend({
else {
heading = e.alpha
}
- this.compass.css[transformProp] = "translateZ(0) rotate(" + heading + "deg)"
+ this.compass.style[transformProp] = "translateZ(0) transformX(-50%) transformY(-50%) rotate(" + heading + "deg)"
},
store: function(){ app.router.go("store") },