forked from forresto/dataflow-prototyping
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconnect-gesture.html
More file actions
93 lines (86 loc) · 1.99 KB
/
Copy pathconnect-gesture.html
File metadata and controls
93 lines (86 loc) · 1.99 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE HTML>
<html>
<head>
<title>connect gesture</title>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<style>
body {
margin: 0;
padding: 0;
background-color: #333;
width: 100%;
height: 100%;
background-image:
-moz-linear-gradient(left, #444 1px, transparent 1px),
-moz-linear-gradient(top, #444 1px, transparent 1px);
background-image:
-webkit-linear-gradient(left, #444 1px, transparent 1px),
-webkit-linear-gradient(top, #444 1px, transparent 1px);
background-image:
linear-gradient(left, #444 1px, transparent 1px),
linear-gradient(top, #444 1px, transparent 1px);
background-size:50px 50px;
}
div {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.node {
cursor: pointer;
width: 50px;
height: 50px;
background-color: rgba(255, 255, 255, 0.5);
position: absolute;
top: 0;
left: 0;
border-radius: 5px;
}
.node h1 {
position: absolute;
top: -18px;
left: 0;
font-size: 15px;
font-weight: normal;
margin: 0;
padding: 0;
color: white;
text-align: center;
}
.inputs {
display: none;
position: absolute;
top: 0;
left: 0;
}
.node.show-ins .inputs {
display:block;
}
.outputs {
display: none;
position: absolute;
top: 0;
right: 0;
}
.node.show-outs .outputs {
display:block;
}
.port {
width: 50px;
height: 50px;
background-color: hsl(0, 25%, 75%);
}
/*.port:hover,*/
.port.active {
background-color: hsl(0, 25%, 50%);
}
</style>
</head>
<body>
<div id="graph"></div>
<script src="connect-gesture.js"></script>
</body>
</html>