-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
39 lines (33 loc) · 1.46 KB
/
index.html
File metadata and controls
39 lines (33 loc) · 1.46 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Language automata</title>
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" type="text/css" href="style.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Architects+Daughter&family=Nunito&family=Raleway:wght@300&display=swap" rel="stylesheet">
</head>
<body>
<div id="UI">
<p>This automata supports *, +, [, ] and | symbols.</p>
<p>Exemples of working regex formulas are "w[i|o|a]f" and "[co+t]*co+de+c".</p>
<label for="regex">Regular expression:</label>
<input type="text" id="regex" name="regex" required size="20" value="[wo]+w">
<div id="errorMessage">
An error has been detected, please don't close any non existing [
</div>
<input id="generateAutomataButton" type="button" value="Generate automata">
<label for="word">Type here to see the automata react:</label>
<input type="text" id="word" name="word" size="20">
</div>
<div id="graphic">
<canvas id='mainCanva'>
Sorry, it seems your browser cannot display canvas :/, I cannot show the automata without a canva.
</canvas>
</div>
<script src="script.js"></script>
<script src="konami.js"></script>
</body>
</html>