PageSourceSearch

https://www.projectmanager.com/wp-content/themes/projectmanager-bo…/library/js/signup.js?ver=260904-185900

js projectmanager.com collected 2026-09-24 08:24:42 UTC 1,986 bytes, 1 lines download raw bytes

1jQuery(document).ready((function(e){var a=e("form.pm-signup-form");function t(a,t){var r=e("input[name="+a+"]",t);return r.length&&!r.prop("disabled")?r.val():""}function r(a){a=a||"There was an error signing you up, please try again.",e("form.pm-signup-form .server-error").html(a).show()}a.on("submit",(function(i){var n,s,o;if((i.preventDefault(),function(){var a=e("#email-address").val().trim();if(!/^[^\s@]+@([a-zA-Z0-9-]+\.)+[a-zA-Z0-9]{2,}$/.test(a))return alert("Please enter a valid email address."),e("#email-address").val(""),!1;return!0}())&&!function(){for(var a=e("#email-address").val().trim(),t=[/qq\.com$/i,/mail\.ru$/i],r=0;r<t.length;r++)if(t[r].test(a))return event.preventDefault(),alert("Please use a valid business email."),e("#email-address").val(""),!0;return!1}()){if(o=!0,e(".pm-signup-form input, pm-signup-form textarea").not("#email-address").each((function(){(e(this).val().includes('"')||e(this).val().includes("<")||e(this).val().includes(">"))&&(o=!1,alert('Invalid character detected: ", <, or > is not allowed.'))})),!o)return;n={emailAddress:t("email-address",a),firstName:t("first-name",a),lastName:t("last-name",a),company:t("company_name_from_api",a),phone:t("phone",a),edition:t("edition",a),template:t("template",a),ip:t("ip",a),landingPage:Cookies.get("land"),utmDetails:Cookies.get("tv"),variationDetails:Cookies.get("tvwo")},s=e("#errorText"),jQuery.ajax({type:"POST",url:t("productAuthDomain",a)+"/api/signup",headers:{"Content-Type":"application/json"},dataType:"json",data:JSON.stringify(n),error:function(e){if(409==e.status){var r=t("productAuthDomain",a);s.html("It looks like there's already an account with that email address, <a href=\""+r+'">try logging in instead</a>.')}}}).done((function(e){e.data&&e.data.returnUrl?window.location.href=t("productAuthDomain",a)+"/"+e.data.returnUrl:r(e.data.errorMsg||e.friendlyMessage||e.errorMessage||e.message)})).fail((function(e){r(e.friendlyMessage||e.errorMessage||e.message)}))}}))}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.