summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/nav/IntroView.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-09-15 16:54:38 -0400
committerJules Laplace <jules@okfoc.us>2015-09-15 16:56:28 -0400
commitd5855a5d5b7c16a2c262ad2b98aabe5e8dd161f0 (patch)
tree6debdaea50594aa9a57707d2cb2e360b5f5aa6d8 /StoneIsland/www/js/lib/nav/IntroView.js
parent007ef2401acf0a98d7412dba06e1acd5f3957a1b (diff)
begin writing navigation css
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") },