| 1 |
jQuery(document).ready(function($){ |
| 2 |
$('.flip').each(function (){ |
| 3 |
var effect=$(this).data('effect'); |
| 4 |
$(this).flip({ |
| 5 |
axis:effect, |
| 6 |
trigger: 'hover' |
| 7 |
}); |
| 8 |
|
| 9 |
}); |
| 10 |
|
| 11 |
$('.face a').on('touchstart',function(e){ |
| 12 |
e.stopPropagation(); |
| 13 |
}) |
| 14 |
|
| 15 |
$('.flip').each(function(){ |
| 16 |
$(this).on('touchstart', function(){ |
| 17 |
$(this).flip('toggle'); |
| 18 |
}); |
| 19 |
}); |
| 20 |
|
| 21 |
|
| 22 |
$('.flip[data-height="equal"]').each(function(){ |
| 23 |
var maxHeight = 0; |
| 24 |
|
| 25 |
$('.cfb-section').each(function(){ |
| 26 |
if ($(this).height() > maxHeight) { maxHeight = $(this).height(); } |
| 27 |
}); |
| 28 |
|
| 29 |
$('.flip[data-height="equal"] .cfb-section').height(maxHeight); |
| 30 |
|
| 31 |
}); |
| 32 |
|
| 33 |
}); |
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|