forked from yairEO/tagify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scroll-tracking.html
54 lines (49 loc) · 1.49 KB
/
scroll-tracking.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Tagify - pupetteer tests</title>
<meta name="description" content="Converts HTML input/textarea into Tags component">
<meta name="author" content="Yair Even-Or">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="../dist/tagify.css">
<script src="../dist/tagify.min.js"></script>
<style>
body{ font: 16px Arial; background:#CCC; }
section{
margin-bottom: 2em;
background: white;
position: absolute;
width: 50%;
xheight: 50%;
top: 200px;
left: 200px;
bottom: -500px;
margin: auto;
overflow: auto;
}
.tagify {
position: relative;
top: -100px;
left: 50px;
width: 70%;
margin: 1000px 1em;
}
</style>
</head>
<body>
<button onclick='document.querySelector("section").requestFullscreen({ navigationUI: "show" });'>FullScreen</button>
<section>
<input>
</section>
<script>
window.xxx = new Tagify(document.querySelector('input'), {
whitelist: [1,2,3,4,5,6,7,8,9],
dropdown: {
enabled: 0,
appendTarget: document.querySelector("section")
}
})
</script>
</body>
</html>