{"id":13827384,"url":"https://github.com/yongzhenlow/email-autocomplete","last_synced_at":"2025-07-09T03:31:59.416Z","repository":{"id":13305757,"uuid":"15992071","full_name":"yongzhenlow/email-autocomplete","owner":"yongzhenlow","description":"A jQuery plugin that suggests and autocompletes the domain in email fields.","archived":true,"fork":false,"pushed_at":"2020-08-25T04:13:02.000Z","size":86,"stargazers_count":274,"open_issues_count":1,"forks_count":51,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-08-04T09:06:41.750Z","etag":null,"topics":["autocomplete","email-autocomplete","javascript","jquery","jquery-plugin"],"latest_commit_sha":null,"homepage":"http://yongzhenlow.github.io/email-autocomplete/demo/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yongzhenlow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-17T06:30:33.000Z","updated_at":"2024-06-03T19:08:24.000Z","dependencies_parsed_at":"2022-08-25T16:51:40.588Z","dependency_job_id":null,"html_url":"https://github.com/yongzhenlow/email-autocomplete","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yongzhenlow%2Femail-autocomplete","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yongzhenlow%2Femail-autocomplete/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yongzhenlow%2Femail-autocomplete/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yongzhenlow%2Femail-autocomplete/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yongzhenlow","download_url":"https://codeload.github.com/yongzhenlow/email-autocomplete/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225481529,"owners_count":17481175,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autocomplete","email-autocomplete","javascript","jquery","jquery-plugin"],"created_at":"2024-08-04T09:01:55.187Z","updated_at":"2024-11-20T06:31:43.384Z","avatar_url":"https://github.com/yongzhenlow.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# jquery.email-autocomplete.js\n\n\u003e A jQuery plugin that suggests and autocompletes the domain whenever your users type in an email address field.\n\n[![Build Status](https://travis-ci.org/yongzhenlow/email-autocomplete.svg?branch=master)](https://travis-ci.org/yongzhenlow/email-autocomplete)\n[![CDNJS version](https://img.shields.io/cdnjs/v/email-autocomplete.svg)](https://cdnjs.com/libraries/email-autocomplete)\n\n\n## What does it do?\n\nWhen your user types in \"user@gm\", the plugin will suggest for e.g. \"user@gmail.com\", based on the first result from a list of predefined email domains.\n\n![diagram](https://raw.github.com/yongzhenlow/email-autocomplete/master/doc_assets/example.png)\n\nPress the tab-key, or simply click on the suggestion to automatically fill in the rest of the domain. (or tap on the suggestion for mobile users.)\n\nYou can also use the right arrow key.\n\nSee a live demo [here](http://yongzhenlow.github.io/email-autocomplete/demo/).\n\n## Installation\n\n**Bower**\n\n```sh\nbower install email-autocomplete --save\n```\n\n**Download** \n\nDownload or clone this repo and copy `dist/jquery.email-autocomplete.min.js` into your javascripts directory.\n\n## Usage (jQuery)\n\nAdd `jquery.email-autocomplete.min.js` into your HTML, before the closing `\u003c/body\u003e` tag.\n\n```html\n\u003cscript src=\"jquery.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"jquery.email-autocomplete.min.js\"\u003e\u003c/script\u003e\n```\n\nYou should also have a email input field.\n\n```html\n\u003cinput id=\"email\" name=\"email\" type=\"email\" /\u003e\n```\n\nNow, attach the plugin to the email input field.\n\n```html\n\u003cscript\u003e\n$(\"#email\").emailautocomplete({\n  suggClass: \"custom-classname\",\n  domains: [\"example.com\"]\n});\n\u003c/script\u003e\n```\n\n## Settings\n\nOption | Type | Default | Description\n------ | ---- | ------- | -----------\nsuggClass|string|'eac-sugg'|Classname for the suggestion text element.\ndomains|array|See list of domains below|Array of domains used for autocompleting.\n\n## Styling\n\nUse the following CSS to style the suggestion text color. Remember to update the classname if you've changed it to a custom one.\n\n```css\n.eac-sugg {\n  color: #ccc;\n}\n```\n\n## Domains\n\nThese are the plugin default domains if the `domains` option is not supplied.\n\n* gmail.com\n* googlemail.com\n* yahoo.com\n* yahoo.co.uk\n* hotmail.com\n* hotmail.co.uk\n* live.com\n* msn.com\n* comcast.net\n* sbcglobal.net\n* verizon.net\n* facebook.com\n* outlook.com\n* att.net\n* gmx.com\n* icloud.com\n* me.com\n* mac.com\n* aol.com\n\n## Author\n\n- Low Yong Zhen\n\n\n## Known Issues\n\n* On Android stock browser, if \"Settings \u003e Accessibility \u003e Scale text up and down\" value is not at 100%, the text width will be calculated incorrectly.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyongzhenlow%2Femail-autocomplete","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyongzhenlow%2Femail-autocomplete","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyongzhenlow%2Femail-autocomplete/lists"}