$(".shoppa").toggle( function(){ $("#vefim_shop").animate({'margin-top': '0'}, 'slow'); $.ajax({ type: "POST", url: "/ajax/carrello_top.php", data: "mauro=yes" , dataType: "html", success: function(msg) { $("#vefim_shopp").html(msg); }, error: function() { alert("errore"); } }); e.preventDefault(); var aTag = $("#carrello"); $('html,body').animate({scrollTop: 0},'slow'); return false; }, function(){ $("#vefim_shop").animate({'margin-top': '-80'}, 'slow'); }); $('#form').submit(function() { if ($('input:checkbox', this).is(':checked')) { } else { alert('Privacy field is required!'); return false; } }); $('#form3').submit(function() { if ($('input:checkbox', this).is(':checked')) { } else { alert('Privacy field is required!'); return false; } }); $('#form_min').submit(function() { if ($('input:checkbox', this).is(':checked')) { } else { alert('Privacy field is required!'); return false; } }); $('.validateForm').submit(function() { if ($('input:checkbox', this).is(':checked')) { } else { alert('Privacy field is required!'); return false; } }); $('.1101').submit(function() { if ($('input:checkbox', this).is(':checked')) { } else { alert('Privacy field is required!'); return false; } }); $('.1798').submit(function() { if ($('input:checkbox', this).is(':checked')) { } else { alert('Privacy field is required!'); return false; } }); $('.1799').submit(function() { if ($('input:checkbox', this).is(':checked')) { } else { alert('Privacy field is required!'); return false; } }); $('.1800').submit(function() { if ($('input:checkbox', this).is(':checked')) { } else { alert('Privacy field is required!'); return false; } }); $('.1801').submit(function() { if ($('input:checkbox', this).is(':checked')) { } else { alert('Privacy field is required!'); return false; } }); $('.1803').submit(function() { if ($('input:checkbox', this).is(':checked')) { } else { alert('Privacy field is required!'); return false; } }); $("#form_min").validate(); $("#form").validate(); $("#form3").validate(); $(function() { $('form.validateForm').each(function(key, form) { $(form).validate(); }); }); $( "#menur li" ).click(function() { var linkk=$(this).attr('id'); //alert(linkk); $.ajax({ type: "POST", url: "/ajax/menu.php", data: "linkk=" + linkk + "&language=it", success: function(response){ $("#menur").html(response); } }); }); $( "#cerca_ora" ).submit(function(event) { var parola=$("#cerca").val(); $("#cerca_nascosto").css('display', 'block'); $.ajax({ type: "GET", url: "/ajax/cerca.php", data: "parola=" + parola + "&language=it", success: function(response){ $("#cerca_nascosto").html(response); $("#cerca").val(""); } }); event.preventDefault(); }); $( "#cerca_ora2" ).click(function() { $.ajax({ type: "GET", url: "/ajax/cerca_min1.php", data: "language=it", success: function(response){ $("#risultato-ricerca").html(response); } }); }); $( "#cerca-terminologia" ).click(function() { $.ajax({ type: "GET", url: "/ajax/cerca_min2.php", data: "language=it", success: function(response){ $("#risultato-ricerca").html(response); } }); }); $( ".home" ).click(function() { window.location.href = '/it'; }); $( "#cercaz" ).click(function() { $( "#cercar" ).toggle(); $( "#richiamar" ).hide(); $( "#chiamar" ).hide(); $( "#menur" ).hide(); $( "#linguer" ).hide(); }); $( "#chiamaz" ).click(function() { $( "#chiamar" ).toggle(); $( "#cercar" ).hide(); $( "#richiamar" ).hide(); $( "#menur" ).hide(); $( "#linguer" ).hide(); }); $( "#menuz" ).click(function() { $( "#chiamar" ).hide(); $( "#cercar" ).hide(); $( "#richiamar" ).hide(); $( "#menur" ).toggle(); $( "#linguer" ).hide(); }); $( "#richiamaz" ).click(function() { $( "#chiamar" ).hide(); $( "#cercar" ).hide(); $( "#richiamar" ).toggle(); $( "#menur" ).hide(); $( "#linguer" ).hide(); }); $( "#linguez" ).click(function() { $( "#chiamar" ).hide(); $( "#cercar" ).hide(); $( "#richiamar" ).hide(); $( "#menur" ).hide(); $( "#linguer" ).toggle(); }); $( "#back" ).click(function() { $( "#chiamar" ).toggle(); $( "#richiamar" ).toggle(); }); $( "#addcart" ).click(function() { $("#pro1").css("display", "none"); $("#pro2").css("display", "block"); $("#pro3").css("display", "none"); $("#overlay").css("display", "block"); $("#addcart").css("visibility", "hidden"); $("#addoffe").css("z-index", "1"); }); $( "#cliccascheda" ).click(function() { $("#elencopdf").css("display", "block"); $("#overlay").css("display", "block"); }); $( "#addoffe" ).click(function() { $("#pro1").css("display", "none"); $("#pro2").css("display", "none"); $("#pro3").css("display", "block"); $("#overlay").css("display", "block"); $("#addcart").css("z-index", "1"); $("#addoffe").css("z-index", "255"); }); $( "#overlay" ).click(function() { $("#overlay").css("display", "none"); $("#pro2").css("display", "none"); $("#pro3").css("display", "none"); $("#pro1").css("display", "block"); $("#elencopdf").css("display", "none"); $("#addcart").css("visibility", "visible"); }); $( "#chiudi_nascosto" ).click(function() { $("#cerca_nascosto").css("display", "none"); });