From 007ef2401acf0a98d7412dba06e1acd5f3957a1b Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 14 Sep 2015 19:12:33 -0400 Subject: stub blog views --- StoneIsland/www/index.html | 59 ++++++++++++++++------------- StoneIsland/www/js/index.js | 1 + StoneIsland/www/js/lib/blogs/ArchiveView.js | 5 +++ StoneIsland/www/js/lib/blogs/HubView.js | 7 +++- StoneIsland/www/js/lib/blogs/StoryView.js | 7 +++- StoneIsland/www/js/lib/nav/HeaderView.js | 14 +++++++ StoneIsland/www/js/lib/nav/NavView.js | 2 + 7 files changed, 67 insertions(+), 28 deletions(-) (limited to 'StoneIsland/www') diff --git a/StoneIsland/www/index.html b/StoneIsland/www/index.html index 0be51d70..08a7949a 100644 --- a/StoneIsland/www/index.html +++ b/StoneIsland/www/index.html @@ -66,42 +66,48 @@

STORY

- + +
@@ -306,6 +312,7 @@ + @@ -328,9 +335,9 @@ - - - + + + 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", -- cgit v1.2.3-70-g09d2