changing routing mechanism
This commit is contained in:
+13
-15
@@ -42,24 +42,22 @@
|
||||
side: 'right'
|
||||
});
|
||||
|
||||
$('#blog').load('blog.html');
|
||||
|
||||
$('#readBlog').on("click", function() {
|
||||
window.location = "http://arjunpatel.me/blog.html";
|
||||
});
|
||||
|
||||
$('.readMore').on("click", function() {
|
||||
var whichBlog = $(this).attr('id');
|
||||
console.log("Loading vlog: " + whichBlog);
|
||||
window.location = "http://arjunpatel.me/blogs/" + whichBlog + ".html";
|
||||
});
|
||||
|
||||
$('#goToMain').on("click", function() {
|
||||
window.location = "http://arjunpatel.me/index.html";
|
||||
});
|
||||
|
||||
$('#goToBlogs').on("click", function() {
|
||||
window.location = "http://arjunpatel.me/blog.html";
|
||||
});
|
||||
// $('.readMore').on("click", function() {
|
||||
// var whichBlog = $(this).attr('id');
|
||||
// console.log("Loading vlog: " + whichBlog);
|
||||
// window.location = "http://arjunpatel.me/blogs/" + whichBlog + ".html";
|
||||
// });
|
||||
//
|
||||
// $('#goToMain').on("click", function() {
|
||||
// window.location = "http://arjunpatel.me/index.html";
|
||||
// });
|
||||
//
|
||||
// $('#goToBlogs').on("click", function() {
|
||||
// window.location = "http://arjunpatel.me/blog.html";
|
||||
// });
|
||||
|
||||
})(jQuery);
|
||||
|
||||
Reference in New Issue
Block a user