update with initial blog functionality

first blog with basic first attempt ui
This commit is contained in:
Arjun Patel
2018-07-07 17:49:01 -07:00
parent 670625a833
commit 8217bc6111
12 changed files with 549 additions and 12 deletions
+21 -1
View File
@@ -42,4 +42,24 @@
side: 'right'
});
})(jQuery);
$('#blog').load('blog.html');
$('#readBlog').on("click", function() {
window.location.href = "blog.html";
});
$('.readMore').on("click", function() {
var whichBlog = $(this).attr('id');
console.log("Loading vlog: " + whichBlog);
window.location.href = "blogs/" + whichBlog + ".html";
});
$('#goToMain').on("click", function() {
window.location.href = "index.html";
});
$('#goToBlogs').on("click", function() {
window.location.href = "../blog.html";
});
})(jQuery);