changing routing mechanism

This commit is contained in:
Arjun Patel
2018-07-07 18:16:33 -07:00
parent e932ab18fc
commit 32520aea63
5 changed files with 50 additions and 40 deletions
+7 -3
View File
@@ -91,16 +91,20 @@
margin: 2em;
padding: .5em 3em;
font-size: 2em;
color: white;
color: white !important;
border: 3px solid white;
cursor: pointer;
transition: 0.7s;
-webkit-transition: 0.7s;
z-index: 2;
display: block;
z-index: 3;
}
#readBlog > p {
margin: 0;
}
#readBlog:hover {
background-color: white;
color: black;
color: black !important;
box-shadow: inset 0 0 0 1px #ffffff;
}
+13 -15
View File
@@ -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);