aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authornanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-13 07:56:17 +0000
committernanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-13 07:56:17 +0000
commit641f7c0ba51f228c7de7236238707ca6e9ed6f9a (patch)
tree3dad137b3f28a7a6101c41b3905ee12ce2d8e82c /index.html
parent23585340df6464fb5805daa221fcb22a21f5db23 (diff)
Created a linked path between the html pages
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 6edf4c1..013ddd5 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>
@@ -109,7 +109,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>
@@ -158,6 +158,12 @@
<script>
$(document).ready(function() {
+ $("input").keyup( function(event) {
+ if(event.keyCode == 13){
+ $(".go-button").click();
+ }
+ });
+
$(".dropdown").hover(function(){
$(".dropdown-toggle", this).trigger("click");
});