-
Notifications
You must be signed in to change notification settings - Fork 0
/
Sortable.html
62 lines (60 loc) · 1.93 KB
/
Sortable.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
<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style type="text/css" media="all">
.drag_box {
width: 340px;
height: 600px;
background: #777;
padding: 10px;
box-sizing: border-box;
border-radius: 10px;
}
.drag_item {
background: #eee;
list-style: none;
font-weight: bold;
font-family: Monospace;
margin-bottom: 15px;
line-height: 40px;
padding: 5px 3px;
border-radius: 10px;
cursor: pointer;
}
</style>
<title>Sortable list</title>
</head>
<body>
<div class="drag_box">
<div class="drag_item">
<li>Follower of Riaz Ahmed Gohar Shah</li>
</div>
<div class="drag_item">
<li>Follower of Sarkar Gohar Shah</li>
</div>
<div class="drag_item">
<li>Follower of Younus ALGohar Shah</li>
</div>
<div class="drag_item">
<li>Follower of Riaz Ahmed Gohar Shah</li>
</div>
<div class="drag_item">
<li>Follower of Riaz Ahmed Gohar Shah</li>
</div>
<div class="drag_item">
<li>Follower of Riaz Ahmed Gohar Shah</li>
</div>
</div>
<script src="
https://cdn.jsdelivr.net/npm/sortablejs@1.15.0/Sortable.min.js
"></script>
<script type="text/javascript" charset="utf-8">
const dragBox = document.querySelector(".drag_box");
new Sortable(dragBox, {
animation: 20
});
</script>
</body>
</html>