cy
2022-06-28 2ba5c891b24d4d0cd6ce7ef833592e4f576ee5e8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// JavaScript Document
$(function(){
    var typeBtn = $('div.personalist'),
        typeCon = $('div.personsubwrap');
    typeBtn.click(function(){
        /*var ds = typeCon.css('display');
        if(ds == 'block'){
            $(this).children('em').removeClass('open');
            typeCon.slideUp();
        }else{
            $(this).children('em').addClass('open');
            typeCon.slideDown();
        }*/
        var i = typeBtn.index(this);
        typeCon.eq(i).animate({height:'toggle'});
        $(this).children('em').toggleClass("open");
    });
})