-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.html
58 lines (55 loc) · 1.1 KB
/
test.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
<!DOCTYPE html>
<html>
<head>
<script src="js/jquery.js"></script>
<script src="js/test.js"></script>
<style>
body {
background-color: black;
}
.anchor {
width: 10px;
height: 10px;
cursor: pointer;
display: inline-block;
position: absolute;
top: -5px;
width: 0;
height: 0;
border: 12.5px solid transparent;
border-bottom: 17.5px solid white;
}
.anchor:after {
content: '';
position: absolute;
left: -12.5px; top: 17px;
width: 0;
height: 0;
border: 12.5px solid transparent;
border-top: 17.5px solid white;
}
.anchor:hover {
top: -4px;
}
.anchor-right {
right: -12px;
}
.anchor-left {
left: -12px;
}
.td{
background-color: salmon;
width: 100px;
height: 50px;
position: relative;
left:0;
}
</style>
</head>
<body ondragover='timeline_drag_over(event);' ondrop='timeline_drop(event);'>
<div class="td" onclick="(0,0)" draggable="true" ondragstart="timeline_drag_start(event);">
<div class="anchor anchor-left" draggable="true" ondragstart="timeline_drag_start(event);"></div>
<div class="anchor anchor-right" draggable="true" ondragstart="timeline_drag_start(event);"></div>
</div>
</body>
</html>