aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorHumairAK <humair88@hotmail.com>2016-07-13 08:10:58 +0000
committerHumairAK <humair88@hotmail.com>2016-07-13 08:10:58 +0000
commit8e52b58efedda826184280abbd9cf2c477fecde2 (patch)
treeed9546fc1fb4ad8889b021edb412d54ec7f21065 /index.html
parent34f2139f567fb065dce41ff289588066188df096 (diff)
parent3408c09a9ad73895bff43d26f348d720314a2ce0 (diff)
Merge branch 'master' of https://github.com/HumairAK/solutions_repo
Diffstat (limited to 'index.html')
-rw-r--r--index.html14
1 files changed, 10 insertions, 4 deletions
diff --git a/index.html b/index.html
index a9feb1a..59db517 100644
--- a/index.html
+++ b/index.html
@@ -52,9 +52,9 @@
<li class="dropdown-submenu">
<a tabindex="-1" href="#">First Year<i class="fa fa-chevron-right"></i></a>
<ul class="dropdown-menu">
- <li><a tabindex="-1" href="#">CSC108</a></li>
- <li><a href="#">CSC148</a></li>
- <li><a href="#">CSC165</a></li>
+ <li><a tabindex="-1" href="exams.html">CSC108</a></li>
+ <li><a href="exams.html">CSC148</a></li>
+ <li><a href="exams.html">CSC165</a></li>
</ul>
</li>
<li><a href="#">Second Year</a></li>
@@ -107,7 +107,7 @@
<input type="text" class="form-control" aria-label="..." name="search" placeholder="Enter course name">
<span class="input-group-btn">
- <button class="btn btn-default search-button" type="button">Go!</button>
+ <button onclick="window.location='exams.html';"class="btn btn-default search-button go-button" type="button">Go!</button>
</span>
</div>
@@ -156,6 +156,12 @@
<script>
$(document).ready(function() {
+ $("input").keyup( function(event) {
+ if(event.keyCode == 13){
+ $(".go-button").click();
+ }
+ });
+
$(".dropdown").hover(function(){
$(".dropdown-toggle", this).trigger("click");
});