-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
56 lines (51 loc) · 1.78 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Finite State Machine Designer</title>
</head>
<body>
<div id="app">
<header class="header">
<div class="title">
<h1>Finite State Machine Designer</h1>
<p>An app that is used to design a Finite State Machine.</p>
</div>
<button class="btn btn-primary" id="btn-export">Export to PNG</button>
</header>
<main>
<canvas id="canvas" width="800" height="500"></canvas>
<article class="description">
<p>Some shortcut that you need to know to use this application:</p>
<ul class="shortcut-list">
<li>
<span class="badge">Click</span> to select state or arrow
</li>
<li>
<span class="badge">Double Click</span> in the blank space to create state
</li>
<li>
<span class="badge">Double Click</span> in certain state to toggle the state to the accept state
</li>
<li>
<span class="badge">Drag</span> to move the state position
</li>
<li>
<span class="badge">Shift + Drag</span> to add a arrow from current state to another state
</li>
<li>
<span class="badge">Delete</span> to delete state or arrow
</li>
</ul>
</article>
</main>
</div>
<footer>
Made with love by <a href="https://github.com/Erik3010" target="_blank">Erik</a>.
The source code is available in <a href="https://github.com/Erik3010/finite-state-machine-designer">here</a>
</footer>
<script type="module" src="/src/main.js"></script>
</body>
</html>