-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbasic-example.html
41 lines (39 loc) · 1.07 KB
/
basic-example.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
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimal-ui" />
<title>Omicron-dnd basic example</title>
<style>
ul {
display: inline-block;
padding: 8px;
}
li {
display: block;
font-size: 2rem;
margin: 4px;
padding: 4px;
background: white;
border: 6px solid limegreen;
border-radius: 1rem;
cursor: pointer;
}
ul>.drag-placeholder {
margin: 4px 0;
}
</style>
</head>
<body>
<ul id="list">
<li>Drag items immediately with mouse 🖱️</li>
<li>Or tap and hold 👉⌛ when using touch</li>
<li>This way scroll on mobile still works 📱</li>
<li>It's that simple! 😃👍</li>
</ul>
</body>
<script type="module">
import OmicronDnd from './dist/omicron-dnd.js';
OmicronDnd.init(document.getElementById('list'));
</script>
</html>