Last active
December 21, 2021 20:47
-
-
Save kaplan/1de4b6125233b0d59007878953f9bee5 to your computer and use it in GitHub Desktop.
Book a meeting 1836 currently on STG
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="mktoForm mainForm" id="mainForm"> | |
<form id="mktoForm_1836"></form> | |
<script> | |
MktoForms2.loadForm("//app-sj31.marketo.com", "866-NKD-303", 1836); | |
(function (){ | |
// Please include the email domains you would like to block in this list | |
var invalidDomains = | |
["@gmail.","@yahoo.","@hotmail.","@live.","@aol.","@outlook.","@bright.net","@woh.rr.com","@embarqmail.com","@mindspring.com","@rcn.com","@roadrunner.com","@imail.org","@frontier.com","@adelphia.net","@ya.ru","@alltel.net","@centurytel.net","@bt.com","@usit.net","@sprynet.com","@online.de","@qq.com","@googlemail.com","@rambler.ru","@gmx.at","@wowway.com","@rr.com","@dslextreme.com","@windstream.net","@free.fr","@btinternet.com","@tiscali.co.uk","@fuse.net","@epix.net","@prodigy.net","@123.com","@coxinet.net","@bellatlantic.net","@optusnet.com.au","@freenet.de","@sapo.pt","@usa.com","@shaw.ca","@bluewin.ch","@gmx.fr","@mail2","@mac.com","@rocketmail.com","@live.","@hotmail.","@google.com","@gmx.de","@yahoo.","@verizon.net","@bigpond.com","@netscape.net","@netzero.net","@icloud.com","@wanadoo.fr","@neo.rr.com","@naver.com","@aol.com","@outlook.","@sbcglobal.net","@earthlink.net", | |
"@msn.com","@comcast.net","@skynet.be","@ameritech.net","@me.com","@frontiernet.net","@web.de","@telus.net","@protonmail.com","@foxmail.com","@wp.pl","@pobox.com","@aim.com","@ymail.com","@columbus.rr.com","@cox.net","@bellsouth.net","@juno.com","@sfr.fr","@t-online.de","@163.com","@alice.it","@att.net","@gmx.com","@zoho.com","@126.com","@gmx.net","@optonline.net","@telenet.be","@usa.net","@mail.ru","@hanmail.net","@orange.fr","@sympatico.ca","@email.com","@cfl.rr.com","@mail.com","@rediffmail.com","@ntlworld.com","@sky.com","@globomail.com","@tampabay.rr.com","@post.com","@bigpond.net.au","@tds.net","@pacbell.net","@swbell.net","@snet.net","@aliyun.com","@ukr.net","@engineer.com","@yandex.ru","@charter.net","@libero.it","@zoominternet.net"]; | |
MktoForms2.whenReady(function (form){ | |
form.onValidate(function(){ | |
var email = form.vals().Email; | |
if(email){ | |
if(!isEmailGood(email)) { | |
form.submitable(false); | |
var emailElem = form.getFormElem().find("#Email"); | |
form.showErrorMessage("Please use your business email address.", emailElem); | |
} | |
else{ | |
form.submitable(true); | |
} | |
} | |
}); | |
}); | |
function isEmailGood(email) { | |
for(var i=0; i < invalidDomains.length; i++) { | |
var domain = invalidDomains[i]; | |
if (email.indexOf(domain) != -1) { | |
return false; | |
} | |
} | |
return true; | |
} | |
})();</script> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment