summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-09-15 17:29:06 -0400
committerJules Laplace <jules@okfoc.us>2015-09-15 17:35:10 -0400
commit7ce68f6fa7deb845266107c38c6049fdcdb5f5a8 (patch)
tree0ed74540dfa6d08001fafe371e507562f3ebf887 /StoneIsland/www/js/lib
parentd5855a5d5b7c16a2c262ad2b98aabe5e8dd161f0 (diff)
using ionicons
Diffstat (limited to 'StoneIsland/www/js/lib')
-rw-r--r--StoneIsland/www/js/lib/_router.js2
-rw-r--r--StoneIsland/www/js/lib/cart/CartView.js4
-rw-r--r--StoneIsland/www/js/lib/nav/IntroView.js6
-rw-r--r--StoneIsland/www/js/lib/products/CollectionView.js4
-rw-r--r--StoneIsland/www/js/lib/products/ProductView.js4
5 files changed, 16 insertions, 4 deletions
diff --git a/StoneIsland/www/js/lib/_router.js b/StoneIsland/www/js/lib/_router.js
index 6434e9bf..d45ffdc2 100644
--- a/StoneIsland/www/js/lib/_router.js
+++ b/StoneIsland/www/js/lib/_router.js
@@ -5,6 +5,7 @@ var SiteRouter = Router.extend({
routes: {
'/': 'intro',
+ '/intro': 'intro',
'/store': 'store',
'/hub': 'hub',
'/story': 'story',
@@ -25,7 +26,6 @@ var SiteRouter = Router.extend({
}
window.location.href = "#/" + url
this.parseRoute(url)
- console.log(url)
},
intro: function(){
diff --git a/StoneIsland/www/js/lib/cart/CartView.js b/StoneIsland/www/js/lib/cart/CartView.js
index fa92fefe..f958f716 100644
--- a/StoneIsland/www/js/lib/cart/CartView.js
+++ b/StoneIsland/www/js/lib/cart/CartView.js
@@ -8,4 +8,8 @@ var CartView = View.extend({
initialize: function(){
},
+ show: function(){
+ document.body.className = "cart"
+ },
+
}) \ No newline at end of file
diff --git a/StoneIsland/www/js/lib/nav/IntroView.js b/StoneIsland/www/js/lib/nav/IntroView.js
index 7b726f6a..93602eb5 100644
--- a/StoneIsland/www/js/lib/nav/IntroView.js
+++ b/StoneIsland/www/js/lib/nav/IntroView.js
@@ -28,12 +28,12 @@ var IntroView = View.extend({
deviceorientation: function(e){
var heading
if ('webkitCompassHeading' in e) {
- heading = e.webkitCompassHeading
+ heading = e.webkitCompassHeading || 0
}
else {
- heading = e.alpha
+ heading = e.alpha || 0
}
- this.compass.style[transformProp] = "translateZ(0) transformX(-50%) transformY(-50%) rotate(" + heading + "deg)"
+ this.compass.style[transformProp] = "translateZ(0) translateX(-50%) translateY(-50%) rotate(" + heading + "deg)"
},
store: function(){ app.router.go("store") },
diff --git a/StoneIsland/www/js/lib/products/CollectionView.js b/StoneIsland/www/js/lib/products/CollectionView.js
index 137d0ec3..7e178a8a 100644
--- a/StoneIsland/www/js/lib/products/CollectionView.js
+++ b/StoneIsland/www/js/lib/products/CollectionView.js
@@ -10,6 +10,10 @@ var CollectionView = View.extend({
this.$content = this.$(".content")
},
+ show: function(){
+ document.body.className = "collection"
+ },
+
populate: function(){
},
diff --git a/StoneIsland/www/js/lib/products/ProductView.js b/StoneIsland/www/js/lib/products/ProductView.js
index ef54575d..3c18338e 100644
--- a/StoneIsland/www/js/lib/products/ProductView.js
+++ b/StoneIsland/www/js/lib/products/ProductView.js
@@ -8,4 +8,8 @@ var ProductView = View.extend({
initialize: function(){
},
+ show: function(){
+ document.body.className = "product"
+ },
+
}) \ No newline at end of file