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; margin: 2em;
padding: .5em 3em; padding: .5em 3em;
font-size: 2em; font-size: 2em;
color: white; color: white !important;
border: 3px solid white; border: 3px solid white;
cursor: pointer; cursor: pointer;
transition: 0.7s; transition: 0.7s;
-webkit-transition: 0.7s; -webkit-transition: 0.7s;
z-index: 2; display: block;
z-index: 3;
}
#readBlog > p {
margin: 0;
} }
#readBlog:hover { #readBlog:hover {
background-color: white; background-color: white;
color: black; color: black !important;
box-shadow: inset 0 0 0 1px #ffffff; box-shadow: inset 0 0 0 1px #ffffff;
} }
+13 -15
View File
@@ -42,24 +42,22 @@
side: 'right' side: 'right'
}); });
$('#blog').load('blog.html');
$('#readBlog').on("click", function() { $('#readBlog').on("click", function() {
window.location = "http://arjunpatel.me/blog.html"; window.location = "http://arjunpatel.me/blog.html";
}); });
$('.readMore').on("click", function() { // $('.readMore').on("click", function() {
var whichBlog = $(this).attr('id'); // var whichBlog = $(this).attr('id');
console.log("Loading vlog: " + whichBlog); // console.log("Loading vlog: " + whichBlog);
window.location = "http://arjunpatel.me/blogs/" + whichBlog + ".html"; // window.location = "http://arjunpatel.me/blogs/" + whichBlog + ".html";
}); // });
//
$('#goToMain').on("click", function() { // $('#goToMain').on("click", function() {
window.location = "http://arjunpatel.me/index.html"; // window.location = "http://arjunpatel.me/index.html";
}); // });
//
$('#goToBlogs').on("click", function() { // $('#goToBlogs').on("click", function() {
window.location = "http://arjunpatel.me/blog.html"; // window.location = "http://arjunpatel.me/blog.html";
}); // });
})(jQuery); })(jQuery);
+4
View File
@@ -25,12 +25,15 @@
</nav> --> </nav> -->
</header> </header>
<a href="http://arjunpatel.me/index.html">
<div id="goToMain"> <div id="goToMain">
<i class="fa fa-times-circle-o"></i> <i class="fa fa-times-circle-o"></i>
</div> </div>
</a>
<section id="blog"> <section id="blog">
<a href="http://arjunpatel.me/blogs/1.html">
<div class="blogCard"> <div class="blogCard">
<div class="title"> <div class="title">
The College Programming Tutorial Article Blog Thingy? The College Programming Tutorial Article Blog Thingy?
@@ -47,6 +50,7 @@
<p id="1" class="readMore">Read More</p> <p id="1" class="readMore">Read More</p>
</div> </div>
</div> </div>
</a>
</section> </section>
<!-- Scripts --> <!-- Scripts -->
+2
View File
@@ -25,9 +25,11 @@
</nav> --> </nav> -->
</header> </header>
<a href="http://arjunpatel.me/blog.html">
<div id="goToBlogs"> <div id="goToBlogs">
<i class="fa fa-times-circle-o"></i> <i class="fa fa-times-circle-o"></i>
</div> </div>
</a>
<section id="blog"> <section id="blog">
+3 -1
View File
@@ -51,7 +51,9 @@
<p>Web Guru, Budding Entrepreneur, and Technology Enthusiast</p> <p>Web Guru, Budding Entrepreneur, and Technology Enthusiast</p>
</div> </div>
<p id="readBlog">Read Blog</p> <a id="readBlog" href="http://arjunpatel.me/blog.html">
<p>Read Blog</p>
</a>
<video autoplay loop muted playsinline src="images/banner.mp4"></video> <video autoplay loop muted playsinline src="images/banner.mp4"></video>
</section> </section>