-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (36 loc) · 1.49 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>Auto Completion search box</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=0.65, user-scalable = no">
<link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="auto-complete.css">
</head>
<body>
<div class="grid form" data-infinite="true">
<div class="input">
<span>Search for countries</span><br>
<input type="text" name="" placeholder="Start typing">
<ul class="auto-complete"></ul>
</div>
</div>
<h4>Simple Fluid and responsive auto-completion search form</h4>
<button onclick="(document.querySelector('.wrapper').classList.toggle('hidden'))">ABOUT</button>
<div class="wrapper hidden">
<h3>Features</h3>
<p>Not all countries are listed here, these are just sample coutries, use an API in place of array in production</p>
<ol>
<li>Auto prediction</li>
<li>Up and down arrow keys to select options</li>
<li><code>Esc</code> key to dismiss form</li>
<li>Smooth fluid height animation</li>
<li> Infinite scrolling if enabled - set <code>data-infinite="true" to enable and "false" to disable</code></li>
<li>Simple loops for best performance</li>
<li>Automatically recalculate the height depending on its content</li>
</ol>
</div>
<style type="text/css">
</style>
<script type="text/javascript" src="auto-completion.js"></script>
</body>
</html>