-
Notifications
You must be signed in to change notification settings - Fork 0
/
live-testing.html
49 lines (40 loc) · 1.61 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>⏩ Live Testing - 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">
<style>
body, input, button {font: 14px/1.3em 'Open Sans', Arial, Verdana, Serif;}
html, body {width: 100vw; height: 100vh; 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;}
#result {position: absolute; right: 0; bottom: 0; width: 30vw; height: 100vh; padding: 10px; box-sizing: border-box; color: #FFF; background: #2C18DF;}
#result a {color: #FFF;}
#result a: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">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>