'; include_once '../common.inc.php'; include_once "../hdr.inc.php"; $contOpt = array( // "support" => "Need support with my project", "offers" => "Introduce products and services", // "edudisc" => "Educational discount", // "sponsor" => "Sponsorship request", "bug" => "Report a bug", "feedback" => "Feedback", "other" => "Other"); echo '


Let\'s get you the answers fast!

While there are many ways to reach '.DOMAIN.', our preferred one is via online contact form.

'.DOMAIN.' is based at the edge of the Hill Country, in the capital city of the State of Texas -- Austin, home to a number of world-class high tech companies and a hand-full of rising start-ups.

Austin, TX, USA

'; if (!empty($_SERVER['HTTP_CLIENT_IP'])) { $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ip = $_SERVER['REMOTE_ADDR']; } $put_in_foot .= ' '; $put_in_foot_js_ready .= ' $("#selOpt").on("change", function() { var ths = $(this), opt = ths.val(), ttl = ths.find("option:selected").text(), sel = $("#selres"), ans = $("#selans"), msg = ""; if (opt.length > 0) { if (opt == "other") { $("#reason").slideUp(); $("#contactForm").removeClass("d-none"); $("#name").focus(); } else { var bb = "
", bf = "
", bl = "continue "; if (opt == "support") { msg = "

If you already have an account on usabiliTEST and need support with one of your projects, please log in first and then submit a ticket using Helpdesk option.

"+bb+bl; } else if (opt == "offers") { msg = "

If you are trying to contact us to introduce:

Please note that we normally do not respond to unsolicited proposals. We assume that your matter is of great value, but we simply do not have the time, at the moment, to give it a proper attention it deserves.

"+bb+""; } else if (opt == "edudisc") { msg = "

If you are inquiring about obtaining Educational Discount, please note that we do offer 30% off any subscription level to students, faculty and staff of any accredited educational institution around the world.

To receive discount, please create a Free Trial account and once you log in, use Helpdesk option in your Account links to contact us for a discount code. It would be helpful if you use email account affiliated with that educational institution. You\'ll be able to change email later, if needed.

If you already have account, please log in.

"+bb+bl; } else if (opt == "sponsor") { msg = "

We frequently sponsor different events around the world that focus on various UX issues. However, please note that we are not able to offer cash, but rather provide you with complimentary subscriptions and deep discounts for your participants.

If this is something of interest to you, please continue with the contact form submission.

"+bb+bf; } else if (opt == "bug") { msg = "

We appreciate you taking time to report an issue. While we do our best testing the code, sometimes it takes a fresh look to spot something that we missed.

Please continue with the contact form submission.

"+bb+bf; } else if (opt == "feedback") { msg = "

We love feedback! User feedback is what inspired us to create this site in the first place.

If you have a suggestion for new products or how we can improve the current ones, we would love to head about it.

"+bb+bf; } sel.slideUp(function(){ $("#card-title").text(ttl); $("#card-content").html(msg); ans.slideDown(); }); } } }); $(document).on("click", ".continue-to-contact-form", function(){ var ttl = $("#selOpt option:selected").text(); $("#reason").slideUp(); $("#msg_subject").val(ttl); $("#contactForm").removeClass("d-none"); $("#name").focus(); }); $(document).on("click", ".go-back", function(){ $("#selans").slideUp(); $("#selres").slideDown(); }); $("#contactForm").validator().on("submit", function (event) { if (event.isDefaultPrevented()) { // handle the invalid form... formError(); alertDrop("danger", 3000, "Did you fill in the form properly? Please try again."); } else { // everything looks good! event.preventDefault(); submitForm(); } }); function submitForm(){ // Initiate Variables With Form Content var name = $("#name").val(); var email = $("#email").val(); var msg_subject = $("#msg_subject").val(); var message = $("#message").val(); $.ajax({ type: "POST", url: "../incl/form-process.php", data: "name=" + name + "&email=" + email + "&msg_subject=" + msg_subject + "&message=" + message + "&ip='.$ip.'", success : function(text){ if (text == "success"){ formSuccess(); } else { formError(); alertDrop("danger", 3000, text); } } }); } function formSuccess(){ $("#contactForm")[0].reset(); $("#contactForm").slideUp(); $("#submit").attr("disabled", "disabled"); $("#contactForm").slideUp(); $("#card-title").text("Message sent successfully."); $("#card-content").html("

If your message requires our response, someone will be in touch with you shortly.

"); $("#reason, #selans").slideDown(); } function formError(){ $("#contactForm").removeClass().addClass("shake animated").one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend", function(){ $(this).removeClass(); }); } $("input, textarea").keyup(function() { if ($("#name").val() != "" && $("#email").val() != "" && $("#msg_subject").val() != "" && $("#message").val() != "" && $("#contactForm").find(".has-error").length < 1) { $("#submit").removeAttr("disabled"); } else { $("#submit").attr("disabled", "disabled"); } }); '; include_once "../ftr.inc.php"; ?>