-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
65 lines (60 loc) · 2.92 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
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
<html class="mdl-js">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet prefetch" href="//fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet prefetch" href="//storage.googleapis.com/code.getmdl.io/1.2.1/material.teal-red.min.css">
<link rel="stylesheet prefetch" href="//fonts.googleapis.com/css?family=Roboto:300,400,500,700">
<link rel="stylesheet" href="dist/mdl-chips-input.css">
<style>
.mdl-layout {
align-items: center;
justify-content: center;
}
.mdl-layout__content {
width: 95%;
height: 95%;
}
.mdl-chipfield {
width: 100%;
min-width: 300px;
}
</style>
</head>
<body>
<div class="mdl-layout mdl-js-layout">
<main class="mdl-layout__content">
<div class="mdl-grid">
<div class="mdl-cell mdl-cell--2-col-desktop mdl-cell--hide-tablet mdl-cell--hide-phone"></div>
<div class="mdl-cell mdl-cell--8-col-desktop mdl-cell--8-col-tablet mdl-cell--4-col-phone">
<h2>Demo</h2>
<form action="#">
<h4>Simple</h4>
<div class="mdl-textfield mdl-js-textfield mdl-chipfield" id="demo-0">
<input type="hidden" class="mdl-chipfield__input" name="demo-0" value="">
<input class="mdl-textfield__input" type="text" id="my-input-0">
<label class="mdl-textfield__label" for="my-input-0">Add Chips</label>
</div>
<h4>Preinitialized</h4>
<div class="mdl-textfield mdl-js-textfield mdl-chipfield" id="demo-1">
<input type="hidden" class="mdl-chipfield__input" name="demo-1" value="chip1,chip2,chip3">
<input class="mdl-textfield__input" type="text" id="my-input-1">
<label class="mdl-textfield__label" for="my-input-1">Add Chips</label>
</div>
<h4>Autocomplete</h4>
<div class="mdl-textfield mdl-js-textfield mdl-chipfield" id="demo-2">
<input type="hidden" class="mdl-chipfield__input" name="demo-2" value="">
<input class="mdl-textfield__input" type="text" id="my-input-2">
<label class="mdl-textfield__label" for="my-input-2">Search Countries</label>
</div>
</form>
</div>
<div class="mdl-cell mdl-cell--2-col-desktop mdl-cell--hide-tablet mdl-cell--hide-phone"></div>
</div>
</main>
</div>
<script src="https://storage.googleapis.com/code.getmdl.io/1.0.1/material.min.js"></script>
<script src="dist/mdl-chips-input.js" type="application/javascript"></script>
<script src="demo.js" type="application/javascript"></script>
</body>
</html>