-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfigmints.js
43 lines (32 loc) · 1.06 KB
/
figmints.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
///////////////////////////////
// Work-Inner Info Accordion
///////////////////////////////
var tab = jQuery('.tab');
tab.on("click", function(e){
e.preventDefault();
var $this = $(this);
$this.toggleClass('active');
$this.next('.panel').toggleClass('active');
});
///////////////////////////////
// Process Page Sort
///////////////////////////////
// $("#sort li a").hover(function(){
// if ( $(window).width() < 701) {
// $('#sort li ul').animate({height: "auto"}, {duration:600, queue:false})
// }
// });
jQuery('.processSort .processType > span').click(function() {
jQuery(this).siblings('h3').click();
});
jQuery('.processSort h3').click(function() {
var index = jQuery('.processSort h3').index(this);
jQuery('.processSort h3').removeClass('active');
jQuery(this).addClass('active');
if(index > 1){
index -= 4;
}
var element = jQuery('.processInfo');
element.find('.processDetail').removeClass('active').eq(index).addClass('active');
return false;
});