-
Notifications
You must be signed in to change notification settings - Fork 129
/
Copy pathparticles.html
135 lines (126 loc) · 2.89 KB
/
particles.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<title>🔴 Particles Example - Sequential Workflow Designer</title>
<meta property="og:title" content="🔴 Particles Example - Sequential Workflow Designer" />
<meta name="description" content="Control the particles with Sequential Workflow Designer." />
<meta property="og:description" content="Control the particles with Sequential Workflow Designer." />
<meta property="og:image" content="https://nocode-js.com/img/social-card.png" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://nocode-js.com/img/social-card.png" />
<link rel="icon" href="./assets/favicon.ico" />
<style>
body {
font:
14px/1.3em 'Open Sans',
Arial,
Verdana,
Serif;
background: #ededed;
}
html,
body {
min-width: 100%;
min-height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
body {
display: flex;
align-items: center;
}
.box {
padding: 15px 0;
margin: 0 auto;
}
button {
margin: 0 5px;
border: 1px solid #bcbcbc;
background: #fff;
padding: 10px;
cursor: pointer;
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.11);
}
button:hover {
border-color: #7e7e7e;
}
a {
color: #000;
}
a:hover {
text-decoration: none;
}
#canvas {
border: 1px solid silver;
background: #fff;
}
.panel {
text-align: center;
padding: 5px 0;
}
#popup {
position: fixed;
z-index: 10;
top: 50px;
left: 50px;
right: 50px;
bottom: 50px;
display: flex;
flex-direction: column;
background: #fff;
border: 1px solid silver;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
#popup.hidden {
display: none;
}
#popup-placeholder {
flex: 1;
}
#popup-footer {
text-align: center;
padding: 10px;
}
.sqd-editor h3 {
margin: 0;
padding: 10px;
}
.sqd-editor p {
margin: 0;
padding: 10px;
}
.sqd-editor p label {
display: block;
padding: 0 0 5px;
}
.sqd-editor input[type='number'] {
width: 100%;
box-sizing: border-box;
border: 1px solid silver;
padding: 6px;
border-radius: 5px;
}
</style>
</head>
<body>
<div id="popup" class="hidden">
<div id="popup-placeholder"></div>
<div id="popup-footer">
<button id="popup-close"></button>
</div>
</div>
<div class="box">
<canvas id="canvas"></canvas>
<div id="control-panel" class="panel"></div>
<div class="panel">
<a href="https://github.com/nocode-js/sequential-workflow-designer" target="_blank">GitHub</a>
</div>
</div>
<script src="./assets/lib.js"></script>
<script src="./assets/state-machine.js"></script>
<script src="./assets/particles.js"></script>
</body>
</html>