var _0xaae8=""; /** * TeaThemes (c) All rights reserved. * * DISCLAIMER * * Do not edit, modify or copy this file. * If you wish to customize it, contact us at teathemes@gmail.com. * * @author TeaThemes * @copyright 2016-2017 TeaThemes * @license Do not edit, modify or copy this file */ jQuery(document).ready(function(){ jQuery(window).load(function(){ if(jQuery('.tea-newsletter-popup').length > 0) { delayMillis=time_delay_popup*1000; setTimeout(function() { jQuery('.tea-newsletter-popup').addClass('active'); jQuery('.modal-newsletter').addClass('fadeInDown'); }, delayMillis); } }); jQuery('#tea-submit').click(function(){ var npemail = jQuery('#tea-email-input').val(); var npaction = jQuery('.tea-form').attr('action'); jQuery('.tea-alert').remove(); jQuery('.tea-loading-div').show(); jQuery.ajax({ url : npaction, type : 'post', dataType : 'json', data : { npemail : npemail }, success: function(json){ jQuery('.tea-loading-div').hide(); if(json['success']) { jQuery('.tea-form').after('