forked from nocode-js/sequential-workflow-designer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmulti-conditional-switch.html
97 lines (93 loc) · 1.98 KB
/
multi-conditional-switch.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>🌵 Multi-Conditional Switch - Sequential Workflow Designer</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<link rel="icon" href="./assets/favicon.ico" />
<link rel="stylesheet" href="./assets/common.css" />
<style>
html,
body {
width: 100vw;
height: 100vh;
overflow: hidden;
}
body {
display: flex;
flex-direction: column;
}
.main {
flex: 1;
position: relative;
}
#designer {
position: absolute;
width: 100%;
height: 100%;
}
.sqd-editor {
padding: 10px;
}
.sqd-editor h2 {
margin: 10px 0 20px;
padding: 0;
line-height: 1.1em;
}
.sqd-editor p {
line-height: 1.3em;
}
.sqd-editor button {
border: 0;
padding: 5px 8px;
background: #222;
color: #fff;
cursor: pointer;
border-radius: 5px;
}
.sqd-editor button:hover {
background: #444;
}
.sqd-editor input[type='text'] {
width: 100%;
margin: 0 0 5px;
box-sizing: border-box;
padding: 5px;
border: 1px solid #ddd;
border-radius: 5px;
}
.sqd-editor .switch-branch {
padding: 10px;
border: 1px solid #ddd;
margin: 10px 0;
border-radius: 5px;
}
.sqd-editor .switch-branch h4 {
margin: 0;
font-size: 14px;
background: #ddd;
padding: 5px;
border-radius: 5px;
}
.sqd-editor .switch-branch label {
display: block;
padding: 5px 0;
}
</style>
</head>
<body>
<header class="title-bar">
<div class="column">
<h1>🌵 Multi-Conditional Switch Example</h1>
</div>
<div class="column text-end flex-1">
<a href="https://github.com/nocode-js/sequential-workflow-designer" target="_blank">GitHub</a>
</div>
</header>
<div class="main">
<div id="designer"></div>
</div>
<script src="./assets/lib.js"></script>
<script src="./assets/multi-conditional-switch.js"></script>
</body>
</html>