-
Notifications
You must be signed in to change notification settings - Fork 128
/
Copy pathlive-testing.html
120 lines (110 loc) · 2.59 KB
/
live-testing.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
<!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>⏩ Live Testing Example - Sequential Workflow Designer</title>
<meta property="og:title" content="⏩ Live Testing Example - Sequential Workflow Designer" />
<meta name="description" content="Run your workflow in real time with nice animation." />
<meta property="og:description" content="Run your workflow in real time with nice animation." />
<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,
input,
button {
font:
14px/1.3em 'Open Sans',
Arial,
Verdana,
Serif;
}
html,
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
#designer {
position: absolute;
left: 0;
top: 0;
width: 70vw;
height: 100vh;
}
.sqd-editor {
padding: 10px;
}
.sqd-editor p {
margin: 0;
padding: 0 0 10px;
}
.sqd-editor label {
display: block;
padding: 0 0 10px;
}
.sqd-editor input[type='text'] {
width: 100%;
box-sizing: border-box;
border: 1px solid silver;
padding: 6px;
border-radius: 5px;
}
.sqd-editor input[type='text']:read-only {
background: #f4f4f4;
border-color: #ddd;
color: #999;
}
#result {
position: absolute;
right: 0;
bottom: 0;
width: 30vw;
height: 100vh;
padding: 10px;
box-sizing: border-box;
color: #fff;
background: #2c18df;
}
#result a.github {
color: #fff;
display: inline-block;
margin: 6px 8px;
}
#result a.github:hover {
text-decoration: none;
}
#result button {
padding: 10px;
color: #000;
background: #fff;
border: 0;
border-radius: 5px;
cursor: pointer;
}
#result button:hover {
opacity: 0.8;
}
</style>
</head>
<body>
<div id="designer"></div>
<div id="result">
<p>
<button id="run">Run 🚀</button>
<a href="https://github.com/nocode-js/sequential-workflow-designer" target="_blank" class="github">GitHub</a>
</p>
<h5>Variables</h5>
<pre id="variables"></pre>
<h5>Console</h5>
<pre id="console"></pre>
</div>
<script src="./assets/lib.js"></script>
<script src="./assets/state-machine.js"></script>
<script src="./assets/live-testing.js"></script>
</body>
</html>