/home/vianto5/tcorporation.com/js
NameSizeModeActions
.DS_Store61480644editdlrm
bootstrap.min.js370450755editdlrm
contact-me.js27560755editdlrm
jquery.countdown.js95500755editdlrm
jquery.easings.min.js129260755editdlrm
jquery.fullpage-min.js297300644editdlrm
jquery.fullpage.js1194440755editdlrm
jquery.min.js971620644editdlrm
jquery.swipebox.js252740755editdlrm
main-essential-2-bonus.js46760755editdlrm
main-essential-bonus.js78540755editdlrm
main-fullscreen-min.js49570644editdlrm
main-fullscreen.js49550755editdlrm
main-min.js30590644editdlrm
main-minimal.js27490755editdlrm
main-slideshow-min.js49590644editdlrm
main-slideshow.js49570755editdlrm
main.js57420755editdlrm
modernizr.custom.js83720644editdlrm
notifyMe.js52410755editdlrm
placeholder.js43460644editdlrm
vegas.js222000755editdlrm
Edit: /home/vianto5/tcorporation.com/js/notifyMe.js (5241B)
function explode(){ $(".block-message").addClass("").removeClass("show-block-valid show-block-error"); $(".message").fadeOut(); } function myTimeout() { setTimeout(function(){ explode(); },4000); } (function(e) { e.fn.notifyMe = function() { // Alert messages var thvalid = '

Congrats!
You are in list.
We will inform you as soon as we finish.

'; var thproblem = '

Oops!
Your e-mail address is incorrect.
Please check it and try again.

'; var thoops = '

Oops!
Looks like something went wrong.
Please try again later.

'; var thfake = '

Oops!
This email address looks fake or invalid.
Please enter a real email address.

'; var thavailability = '

Oops!
Service is not available at the moment.
Please check your internet connection or try again later.

'; var i = e(this).find("input[name=email]"); var s = e(this).attr("action"); var o = e(this).find(".note"); var thform = document.getElementById("notifyMe"); e(this).on("submit", function(t) { t.preventDefault(); var h = i.val(); var p = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; if (p.test(h)) { $(".message").removeClass("error bad-email success-full"); $(".message").hide().html('').fadeIn(); $('#submit-form').html('Submitting '); // Message displayed in the submit button during the sending o.show(); e.ajax({ type: "POST", url: s, data: { email: h }, dataType: "json", error: function(e) { o.hide(); $('#submit-form').html('Get notified'); // Message displayed in the submit button if an error has occured $(".block-message").addClass("show-block-error").removeClass("show-block-valid"); if (e.status === 404) { $(".message").html(thavailability).fadeIn(); myTimeout(); } else { $(".message").html(thoops).fadeIn(); myTimeout(); } } }).done(function(e) { o.hide(); if (e.status === "success") { $('#submit-form').html('Sent!'); // Message displayed in the submit button during the sending $(".message").removeClass("bad-email").addClass("success-full"); $(".block-message").addClass("show-block-valid").removeClass("show-block-error"); $(".message").html(thvalid).fadeIn(); thform.reset(); } else { if (e.type === "ValidationError") { $('#submit-form').html('Get notified'); // Message displayed in the submit button if an error has occured $(".block-message").addClass("show-block-error").removeClass("show-block-valid"); $(".message").html(thfake).fadeIn(); myTimeout(); } else { $('#submit-form').html('Get notified'); // Message displayed in the submit button if an error has occured $(".block-message").addClass("show-block-error").removeClass("show-block-valid"); $(".message").html(thoops).fadeIn(); myTimeout(); } } }); } else { $('#submit-form').html('Get notified'); // Message displayed in the submit button if an error has occured $(".message").addClass("bad-email").removeClass("success-full"); $(".block-message").addClass("show-block-error").removeClass("show-block-valid"); $(".message").html(thproblem).fadeIn(); myTimeout(); o.hide(); } // Reset and hide all messages on .keyup() $("#notifyMe input").on('keyup keypress', function(e) { var code = e.keyCode || e.which; if (code === 13) { e.preventDefault(); $("#notifyMe").submit(); } else { clearTimeout(myTimeout); $(".block-message").addClass("").removeClass("show-block-valid show-block-error"); $(".message").fadeOut(); } }); }); }; })(jQuery);