window.onload = -> domains = [ 'msn.com' 'bellsouth.net' 'telus.net' 'telusplanet.net' 'comcast.net' 'optusnet.com.au' 'earthlink.net' 'qq.com' 'sky.com' 'icloud.com' 'mac.com' 'sympatico.ca' 'googlemail.com' 'att.net' 'xtra.co.nz' 'web.de' 'cox.net' 'gmail.com' 'ymail.com' 'aim.com' 'rogers.com' 'verizon.net' 'rocketmail.com' 'google.com' 'optonline.net' 'sbcglobal.net' 'aol.com' 'me.com' 'btinternet.com' 'charter.net' 'shaw.ca' 'xplore.com' 'abnorth.com' 'pentnet.net' 'canadasurf.net' 'ama.ab.ca' ] secondLevelDomains = [ 'yahoo' 'hotmail' 'mail' 'live' 'outlook' ] $email = $('[type="email"]') $email.on 'blur', -> $(this).mailcheck domains: domains secondLevelDomains: secondLevelDomains suggested: (element, suggestion) -> text = 'Did you mean ' + '' + '' + suggestion.address + '' + '@' + suggestion.domain + '' + '?' if !$('.email_hint').length $('