-
Notifications
You must be signed in to change notification settings - Fork 1k
/
index.html
81 lines (75 loc) · 1.75 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!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;
}
.no-pointer-events {
pointer-events: none;
}
.hovered {
background-color: gray;
}
/*
* RemWrapper needs to take it's styles from this element,
* and this element can't have an absolute position after it's kicked in.
* AFAIK it's not possible to do this directly in the RemWrapper component.
*/
.rem-position-fix {
position: static !important;
}
</style>
</head>
<body>
<div id="container"></div>
<script src="//unpkg.com/react@16/umd/react.development.js"></script>
<script src="//unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="../build/web/react-draggable.min.js"></script>
<!-- for imported script -->
<script src="//unpkg.com/@babel/standalone/babel.min.js"></script>
<script type="text/babel" src="../example/example.js"></script>
</body>
</html>