aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/default/js/popupForm.js
blob: 06be3f0cdced6fd923d72af5b3e9d1cdb49e6641 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$(document).ready(function() {

    $("#search-form").hide();

    function closeSearch() {
        $("#search-form").toggle();
        $("#search").toggleClass("current");
        $("#search-arrow").toggleClass("arrow-down");
    }

    $("#search").click(function(){
        closeSearch();
    });

    $("#search-form-close").click(function(){
        closeSearch();
    });


});