forked from react-grid-layout/react-draggable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (60 loc) · 1.32 KB
/
index.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
63
64
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>React Draggable</title>
<style type="text/css">
* {
box-sizing: border-box;
}
html, body {
height: 100%;
}
body {
color: #222;
font-family: "Helvetica Neue", sans-serif;
font-weight: 200;
margin: 0 50px;
}
.react-draggable, .cursor {
cursor: move;
}
.no-cursor {
cursor: auto;
}
.cursor-y {
cursor: ns-resize;
}
.cursor-x {
cursor: ew-resize;
}
.react-draggable strong {
background: #ddd;
border: 1px solid #999;
border-radius: 3px;
display: block;
margin-bottom: 10px;
padding: 3px 5px;
text-align: center;
}
.box {
background: #fff;
border: 1px solid #999;
border-radius: 3px;
width: 180px;
height: 180px;
margin: 10px;
padding: 10px;
float: left;
}
</style>
</head>
<body>
<div id="container"></div>
<script src="//unpkg.com/react@15/dist/react.min.js"></script>
<script src="//unpkg.com/react-dom@15/dist/react-dom.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.29/browser.min.js"></script>
<script src="../dist/react-draggable.js"></script>
<script type="text/babel" src="../example/example.js"></script>
</body>
</html>