").css({ width: $(window).width(), height: $(window).height() }).attr("class", "bounce-mask")) .append($("
").attr("class", "exit"))); $(".bounce-popup").css({ top: ($(window).height() - $('.bounce-popup').height()) / 2 + 'px', left: ($(window).width() - $('.bounce-popup').width()) / 2 + 'px' }); } jQuery('#avoid-bounce').data('shown', true); } } }); $(document).on('click', '.bounce-mask', function () { $('.bounce-popup').remove(); $('.bounce-mask').remove(); $('.bounce-popup_IT').remove(); }); $(document).on('click', '.exit', function (e) { e.preventDefault(); $('.bounce-popup').remove(); $('.bounce-mask').remove(); $('.bounce-popup_IT').remove(); }); $(document).on('click', '.exit2', function(e) { e.preventDefault(); $('.bounce-mask').remove(); $('.bounce-popup').remove(); $('.bounce-popup_IT').remove(); }); $(document).on('submit', '.subscribe form', function (event) { event.preventDefault(); $(this).find("button").prop("disabled", true); var form = $(this); $.post(form.attr('action'), form.serialize(), function (data) { if (data) { $('.subscribe').addClass('success'); getAuthState(); $("Email").hide(); $(".subscribe #Email").hide(); $(".subscribe .btn").hide(); if (data.AlreadyMember) { $('.subscribe').append("
You are already registered. This alert has been added to your account
"); } else { $('.subscribe').append("
Congratulations. We'll alert you when we find new ads for you
"); } setTimeout(function () { $('.bounce-popup').fadeOut('slow'); $('.bounce-mask').fadeOut('slow'); $('.bounce-popup_IT').remove(); }, 4000); } }); }); }} }); function validateEmail(email) { var emailReg = new RegExp("^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$"); if (!emailReg.test(email)) { if ($("#Email").val().length == 0) { $(".error-msg").hide(); $('.subscribe').append("
Email obbligatoria
"); } else { $(".error-msg").hide(); $('.subscribe').append("
Email non valido
"); } return false; } else { $(".error-msg").hide(); return true; } };
Terimakasih anda telah membaca artikel tentang Pump Trucks Pallets for sale in UK View 82 bargains. Jika ingin menduplikasi artikel ini diharapkan anda untuk mencantumkan link https://pall-et.blogspot.com/2016/05/pump-trucks-pallets-for-sale-in-uk-view.html. Terimakasih atas perhatiannya.