-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
83 lines (79 loc) · 2.53 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<!-- Google tag (gtag.js) -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-6BNE2SV3ZF"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-6BNE2SV3ZF");
</script>
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="icon" href="TitleLogo.png" />
<script type="module" src="./scripts/script.js"></script>
<script type="module" src="./scripts/export.js"></script>
<title>FSM Designer</title>
<!-- SEO -->
<meta
name="description"
content="This is an app to design finite state machines"
/>
<meta
name="keywords"
content="canvas, FSM, fsm, finite automata, finite state machine, theory of computer science"
/>
<meta name="author" content="Abhinav Choudhary" />
<!-- Open Graph Meta Tags for social media sharing -->
<meta property="og:title" content="Abhinav's FSM Designer" />
<meta
property="og:description"
content="This is an awesome website to create finite state machines"
/>
<meta property="og:image" content="https://i.ibb.co/z2f59Pm/mine.png" />
<meta
property="og:url"
content="https://abhinav-chdhary.github.io/FSMcreator/"
/>
<meta property="og:type" content="website" />
</head>
<body>
<h1>Finite State Machine Designer</h1>
<canvas id="canvas" width="800" height="600"></canvas>
<div>
<div>
Export as:
<button onclick="handleExportPNG()">PNG</button>
<button onclick="handleExportSVG()">SVG</button>
<br />
<textarea id="result"></textarea>
<input type="text" id="searchBox" value="" hidden />
</div>
<div class="insContainer">
Instructions:
<ul>
<li>Add a state: Double Click</li>
<li>Move something: Click and drag</li>
<li>Make a accept state: Double click a state</li>
<li>Select something: Click on it</li>
<li>Edit text: Select and type*</li>
<li>Create Link: Press shift and drag</li>
<li>Delete something: Press shift and drag</li>
</ul>
<p>*for now, only english alphabet and digits allowed</p>
</div>
<p>
- Created by
<a href="https://abhinav-chdhary.github.io/my-portfolio/"
>Abhinav🧙♂️ -</a
>
</p>
</div>
</body>
</html>