Ciao,
prova così:
codice:
$(document).ready(function(){
// set up hover panels
// although this can be done without JavaScript, we've attached these events
// because it causes the hover to be triggered when the element is tapped on a touch device
$('.hover').hover(function(){
$(this).addClass('flip');
},function(){
$(this).removeClass('flip');
});
// set up click/tap panels
$('.click').toggle(function(e){
var target = $(e.target);
if(target.parents('form').length > 0){ return false; }
$(this).addClass('flip');
},function(){
$(this).removeClass('flip');
});
// set up contact form link
$('.contact .action').click(function(e){
$('.contact').addClass('flip');
e.preventDefault();
});
$('.contact .edit-submit').click(function(e){
$('.contact').removeClass('flip');
e.preventDefault();
});
});