Created
April 7, 2012 01:13
-
-
Save mahemoff/2324363 to your computer and use it in GitHub Desktop.
Using MailCheck (https://github.com/Kicksend/mailcheck)
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
<input name='email' type='email' /> | |
<div class='suggestion'> | |
<span>Did you mean <span class='value'></span>?</span> | |
</div> |
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
domains = '126.com 163.COM abv.bg aim.com aol.com arcor.de att.net bellsouth.net bk.ru bluewin.ch btinternet.com centrum.cz charter.net comcast.net cox.net earthlink.net email.com fastmail.fm free.fr freenet.de gmail.com gmx.at gmx.ch gmx.com gmx.de gmx.net googlemail.com hmamail.com hotmail.co.uk hotmail.com hotmail.de hotmail.fr hotmail.it hush.ai hush.com hushmail.com i.ua i2pmail.org iki.fi inbox.com inbox.lv inbox.ru juno.com klzlk.com lavabit.com libero.it list.ru live.ca live.co.uk live.com live.com.au live.de live.dk live.fr live.nl live.se mac.com mail.bg mail.com mail.ru mailinator.com me.com mit.edu msn.com nym.hush.com o2.pl online.de optonline.net pobox.com prime.gushi.org qq.com rambler.ru riseup.net rochester.rr.com rocketmail.com safe-mail.net sbcglobal.net seznam.cz sharedaddy.com shaw.ca sina.com snkmail.com spamgourmet.com sporktronics.com t-online.de telenet.be telia.com telus.net tiscali.it tlen.pl tut.by ukr.net verizon.net web.de wp.pl ya.ru yahoo.ca yahoo.co.uk yahoo.com yahoo.com.ar yahoo.com.au yahoo.com.br yahoo.com.cn yahoo.com.vn yahoo.de yahoo.es yahoo.fr yahoo.it yahoo.se yandex.ru ymail.com zoho.com'.split(' ') | |
$ -> | |
$('[type=email]').on 'blur', -> $(this).mailcheck | |
domains: domains | |
suggested: (el, suggestion) -> | |
$('.suggestion').show() | |
$('.suggestion .value').html(suggestion.full) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment