forked from WolfgangKurz/grabbable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample.html
55 lines (53 loc) · 1.04 KB
/
sample.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
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Grabbable</title>
<style type="text/css">
* { box-sizing: border-box }
.box {
display: -webkit-flex;
display: flex;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
width: 720px;
padding: 40px;
background-color: #fff;
}
.item {
display: inline-block;
margin: 6px;
width: 120px;
height: 120px;
border: 1px solid #c4c4c4;
box-shadow: 0 0 9px rgba(0, 0, 0, 0.13);
line-height: 120px;
text-align: center;
font-size: 44px;
}
</style>
<script type="text/javascript" src="grabbable.js"></script>
</head>
<body>
<div class="box grabbable-parent">
<div class="item">1</div>
<div class="item">2</div>
<div class="item">3</div>
<div class="item">4</div>
<div class="item">5</div>
<div class="item">6</div>
<div class="item">7</div>
<div class="item">8</div>
<div class="item">9</div>
<div class="item">10</div>
<div class="item">11</div>
</div>
<script type="text/javascript">
"use strict";
!function(){
document.querySelector(".grabbable-parent")
.grabbable();
}()
</script>
</body>
</html>