From d5855a5d5b7c16a2c262ad2b98aabe5e8dd161f0 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 15 Sep 2015 16:54:38 -0400 Subject: begin writing navigation css --- StoneIsland/www/js/lib/nav/IntroView.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'StoneIsland/www/js/lib/nav/IntroView.js') 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") }, -- cgit v1.2.3-70-g09d2