aboutsummaryrefslogtreecommitdiff
path: root/assets/js/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/script.js')
-rw-r--r--assets/js/script.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/assets/js/script.js b/assets/js/script.js
index d53a4ee..e752f0c 100644
--- a/assets/js/script.js
+++ b/assets/js/script.js
@@ -49,5 +49,31 @@ function main(){
}
});
+
+
+ // --- nav scripts ---
+ $("input").keyup( function(event) {
+ if(event.keyCode == 13){
+ $(".go-button").click();
+ }
+ });
+
+ $(".dropdown").hover(function(){
+ $(".dropdown-toggle", this).trigger("click");
+ });
+
+ $(".dropdown-toggle").click(function() {
+ $(this).next(".dropdown-menu").fadeToggle(200);
+ });
+
+ // For the Second level Dropdown menu, highlight the parent
+ $( ".dropdown-menu" )
+ .mouseenter(function() {
+ $(this).parent('li').addClass('active');
+ })
+ .mouseleave(function() {
+ $(this).parent('li').removeClass('active');
+ });
+
}
$(document).ready(main); \ No newline at end of file