-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (42 loc) · 1.37 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>state machine</title>
<meta name="description" content="State machine" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="" />
<style>
:root {
font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
"Noto Color Emoji";
font-size: 1rem; /* 16px */
line-height: 1.5rem; /* 24px */
background-color: #1b2634;
color: #edf8fc;
/* --color-tertiary-900: 255 141 141; */
}
body {
margin: 0;
padding: 0;
height: 100svh;
width: 100svw;
overflow: hidden;
}
</style>
<script type="module">
// await new Promise((res) => import("https://zavx0z.github.io/dev-tools/index.js").then(() => setTimeout(res, 200)))
import("./src/index.js")
const src = document.querySelector("state-machine").getAttribute("src")
const channel = new BroadcastChannel(src)
channel.onmessage = ({data}) => {
// console.log("[main]", data)
}
</script>
<dev-tools mobile></dev-tools>
</head>
<body>
<!-- <state-machine src="/state-machine/src/core/visualizer.scxml" /> -->
<state-machine src="/state-machine/machine.scxml" />
</body>
</html>