-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
71 lines (71 loc) · 1.92 KB
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Emailcompleter sample</title>
<link rel="stylesheet" href="src/emailcompleter.css" type="text/css"/>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js" type="text/javascript"></script>
<script src="src/jquery.emailcompleter.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
var domains = [
'aol.com',
'bellsouth.net',
'btinternet.com',
'charter.net',
'comcast.net',
'cox.net',
'earthlink.net',
'gmail.com',
'hotmail.co.uk',
'hotmail.com',
'msn.com',
'ntlworld.com',
'rediffmail.com',
'sbcglobal.net',
'verizon.net',
'yahoo.co.uk',
'yahoo.com'
];
$('#email').emailcomplete(domains, 35);
$('#domains').append(domains.join(', '));
});
</script>
<style type="text/css">
body {
font-family: Helvetica, sans-serif;
width: 40em;
margin: 2em auto 0;
text-align: center;
}
input {
font-size: 1.2em;
padding: 0.2em;
border: 1px solid #666;
width: 20em;
}
a {
color: #204A87;
}
#domains {
font-family: monospace;
}
</style>
</head>
<body>
<form>
<p><input id="email" type="text" /></p>
<p>
Try entering an email into the field above.
The following domains should be suggested:
</p>
<p id="domains"></p>
<p>
For more info see
<a href="https://github.com/adamcik/emailcompleter">
https://github.com/adamcik/emailcompleter
</a>
</p>
</form>
</body>
</html>