summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-09-14 19:12:33 -0400
committerJules Laplace <jules@okfoc.us>2015-09-14 19:12:33 -0400
commit007ef2401acf0a98d7412dba06e1acd5f3957a1b (patch)
tree806b77bab1cee31b09ed5075d9aafd1e32f54a12 /StoneIsland/www/js
parent75898c4a43a68e3bea02e4e05fa2158848d455b4 (diff)
stub blog views
Diffstat (limited to 'StoneIsland/www/js')
-rw-r--r--StoneIsland/www/js/index.js1
-rw-r--r--StoneIsland/www/js/lib/blogs/ArchiveView.js5
-rw-r--r--StoneIsland/www/js/lib/blogs/HubView.js7
-rw-r--r--StoneIsland/www/js/lib/blogs/StoryView.js7
-rw-r--r--StoneIsland/www/js/lib/nav/HeaderView.js14
-rw-r--r--StoneIsland/www/js/lib/nav/NavView.js2
6 files changed, 34 insertions, 2 deletions
diff --git a/StoneIsland/www/js/index.js b/StoneIsland/www/js/index.js
index 676dedfc..9a8e945c 100644
--- a/StoneIsland/www/js/index.js
+++ b/StoneIsland/www/js/index.js
@@ -11,6 +11,7 @@ var app = (function(){
app.ready = function(){
app.view = null
+ app.nav = new NavView ()
app.router = new SiteRouter ()
}
diff --git a/StoneIsland/www/js/lib/blogs/ArchiveView.js b/StoneIsland/www/js/lib/blogs/ArchiveView.js
index 673f3b3f..04b43a4b 100644
--- a/StoneIsland/www/js/lib/blogs/ArchiveView.js
+++ b/StoneIsland/www/js/lib/blogs/ArchiveView.js
@@ -1,11 +1,16 @@
var ArchiveView = View.extend({
el: "#archive",
+ template: $("#archive .template").html(),
events: {
},
initialize: function(){
+ this.$content = this.$(".content")
+ },
+
+ populate: function(){
},
}) \ No newline at end of file
diff --git a/StoneIsland/www/js/lib/blogs/HubView.js b/StoneIsland/www/js/lib/blogs/HubView.js
index 936c766f..4958b320 100644
--- a/StoneIsland/www/js/lib/blogs/HubView.js
+++ b/StoneIsland/www/js/lib/blogs/HubView.js
@@ -1,11 +1,16 @@
var HubView = View.extend({
el: "#hub",
-
+ template: $("#hub .template").html(),
+
events: {
},
initialize: function(){
+ this.$content = this.$(".content")
+ },
+
+ populate: function(){
},
}) \ No newline at end of file
diff --git a/StoneIsland/www/js/lib/blogs/StoryView.js b/StoneIsland/www/js/lib/blogs/StoryView.js
index 338f124b..4c71e9ff 100644
--- a/StoneIsland/www/js/lib/blogs/StoryView.js
+++ b/StoneIsland/www/js/lib/blogs/StoryView.js
@@ -1,11 +1,16 @@
var StoryView = View.extend({
el: "#story",
-
+ template: $("#story .template").html(),
+
events: {
},
initialize: function(){
+ this.$content = this.$(".content")
+ },
+
+ populate: function(){
},
}) \ No newline at end of file
diff --git a/StoneIsland/www/js/lib/nav/HeaderView.js b/StoneIsland/www/js/lib/nav/HeaderView.js
index f76001d4..856bb404 100644
--- a/StoneIsland/www/js/lib/nav/HeaderView.js
+++ b/StoneIsland/www/js/lib/nav/HeaderView.js
@@ -3,9 +3,23 @@ var HeaderView = View.extend({
el: "#header",
events: {
+ "click .burger": "nav",
+ "click .logo": "logo",
+ "click .cart": "cart",
},
initialize: function(){
},
+
+ nav: function(){
+ app.nav.show()
+ },
+
+ logo: function(){
+ },
+
+ cart: function(){
+ app.router.go("cart")
+ },
}) \ No newline at end of file
diff --git a/StoneIsland/www/js/lib/nav/NavView.js b/StoneIsland/www/js/lib/nav/NavView.js
index 6e57ec32..42877d88 100644
--- a/StoneIsland/www/js/lib/nav/NavView.js
+++ b/StoneIsland/www/js/lib/nav/NavView.js
@@ -7,9 +7,11 @@ var NavView = View.extend({
"click .hub": "hub",
"click .story": "story",
"click .archive": "archive",
+
"click .login": "login",
"click .faq": "faq",
"click .search": "search",
+
"click .fb": "fb",
"click .insta": "insta",
"click .tw": "tw",