| Server IP : 195.130.67.5 / Your IP : 216.73.216.231 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/icd/modules/mod_cool_jquery_countdown/js/ |
Upload File : |
function email_focus() {
if ($(this).val() == 'your@email.com') {
$(this).val('')
$(this).removeClass('faded');
}
}
function email_blur() {
if ($(this).val() == '') {
$(this).val('your@email.com')
$(this).addClass('faded');
}
}
function subscribe_submit() {
email = $('#email_field').val();
$.post('subscribe.php?json=1', $('#subscribe_form').serialize(), subscribe_result, 'json');
$('#subscribe_button').attr("disabled","disabled");
$('.form_message').fadeOut('fast');
$('#loading').fadeIn('fast');
return false;
}
function subscribe_result(data) {
$('#loading').hide();
if (data.error) {
display_message(data.error);
} else {
display_message(data.info, 'info')
}
$('#subscribe_button').removeAttr("disabled");
}
function display_message(msg, type) {
if (!type) type = 'error';
if (type == 'error') {
$('#error_message').html(msg).fadeIn('slow');
setTimeout('hide_error()', 4000);
} else {
$('#error_message').hide();
$('#info_message').html(msg).fadeIn('slow');
}
}
function hide_error() {
$('#error_message').fadeOut('slow');
}