-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathindex.html
More file actions
34 lines (34 loc) · 739 Bytes
/
index.html
File metadata and controls
34 lines (34 loc) · 739 Bytes
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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="tags-input.css">
<script type="text/javascript" src="tags-input.js"></script>
<style type="text/css">
body {
padding: 1em 3em;
}
form {
max-width: 40em;
margin: auto;
}
.tags-input {
width: 100%;
margin: 1em 0;
}
</style>
</head>
<body>
<form>
<label for='simple'>Simple</label>
<input id='simple' type='text'>
<label for='email'>Email</label>
<input id='email' type='email' data-separator=' '>
<label for='url'>URL</label>
<input id='url' type='url' data-separator=' '>
</form>
<script type="text/javascript">
for (let input of document.querySelectorAll('form input')) {
tagsInput(input);
}
</script>
</body>