Skip to content

Commit

Permalink
test snap
Browse files Browse the repository at this point in the history
  • Loading branch information
sakitam-fdd committed Aug 27, 2018
1 parent 1313aa2 commit 3ef3815
Show file tree
Hide file tree
Showing 9 changed files with 1,582 additions and 130 deletions.
116 changes: 116 additions & 0 deletions example/test/drag.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title>寒玉知-仿QQ拖拽删除</title>
</head>
<style>
<!--nothing needs to import-->
html,body{margin: 0;}
#body{overflow: scroll;height: 100vh;}
.drag{position: relative;padding:10px 30px;z-index: 1;}
.drag div{
width: 40px;
height: 40px;
color: #FFF;
text-align: center;
font-size: 20px;
line-height: 40px;
border-radius: 50%;
background-color: red;
}
.dragdom{
position: relative;
}
</style>
<body>
<div id="body">
<div class="drag">
<div class="div1 dragdom" data-target="1">1</div>
</div>
<div class="drag">
<div class="div1 dragdom" data-target="2">36</div>
</div>
<div class="drag">
<div class="div1 dragdom" data-target="3">7</div>
</div>
<div class="drag">
<div class="div1 dragdom" data-target="4">15</div>
</div>
<div class="drag">
<div class="div1 dragdom" data-target="5">9</div>
</div>
<div class="drag">
<div class="div1 dragdom" data-target="6">14</div>
</div>
<div class="drag">
<div class="div1 dragdom" data-target="7">30</div>
</div>
<div class="drag">
<div class="div1 dragdom" data-target="8">65</div>
</div>
<div class="drag">
<div class="div1 dragdom" data-target="9">34</div>
</div>
<div class="drag">
<div class="div1 dragdom" data-target="10">4</div>
</div>
<div class="drag">
<div class="div1 dragdom" data-target="11">2</div>
</div>
<div class="drag">
<div class="div1 dragdom" data-target="12">20</div>
</div>
<div class="drag">
<div class="div1 dragdom" data-target="1">20</div>
</div>
<div class="drag">
<div class="div1 dragdom" data-target="2">20</div>
</div>
<div class="drag">
<div class="div1 dragdom" data-target="3">20</div>
</div>
<div class="drag">
<div class="div1 dragdom" data-target="4">20</div>
</div>
<div class="drag">
<div class="div1 dragdom" data-target="5">20</div>
</div>
<div class="drag">
<div class="div1 dragdom" data-target="6">20</div>
</div>
<div class="drag">
<div class="div1 dragdom" data-target="7">20</div>
</div>
<div class="drag">
<div class="div1 dragdom" data-target="8">20</div>
</div>
<div class="drag">
<div class="div1 dragdom" data-target="9">20</div>
</div>
<div class="drag">
<div class="div1 dragdom" data-target="10">20</div>
</div>
<div class="drag">
<div class="div1 dragdom" data-target="11">20</div>
</div>
<div class="drag">
<div class="div1 dragdom" data-target="12">20</div>
</div>
<div id="word">

</div>
</div>


<script src="./drag.js"></script>
<script>
new MoveDrag({
doms: '.dragdom',
max: 90,
fillcolor: 'red'
})
</script>
</body>
</html>
Loading

0 comments on commit 3ef3815

Please sign in to comment.