diff options
| author | HumairAK <humair88@hotmail.com> | 2016-07-18 10:49:16 +0000 |
|---|---|---|
| committer | HumairAK <humair88@hotmail.com> | 2016-07-18 10:49:16 +0000 |
| commit | c1ce89359a7b54ec97b54ce577e5534c180c5c4b (patch) | |
| tree | 39f8333533131fc0b0efba99a0517e11a63706ce /assets/js/script.js | |
| parent | 0a47900db45ce82d10ad09a6aee85e1ba68a9063 (diff) | |
Various fixes, see changelog for details.
Diffstat (limited to 'assets/js/script.js')
| -rw-r--r-- | assets/js/script.js | 26 |
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 |
