-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (49 loc) · 2.21 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
<!DOCTYPE html>
<html lang="en" data-bs-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>First & Follow</title>
<link rel="stylesheet" href="assets/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<header class="pt-2">
<h1 class="text-center fw-bold">First & Follow</h1>
</header>
<hr class="my-4">
<main class="container-fluid">
<!-- get grammar -->
<form action="" id="grammar-form" class="d-flex justify-content-center">
<div>
<!-- symbol buttons -->
<button class="btn btn-success" onclick="addToText(this)" type="button" value="→">→</button>
<button class="btn btn-success" onclick="addToText(this)" type="button" value="|">|</button>
<button class="btn btn-success" onclick="addToText(this)" type="button" value="λ">λ(ε)</button>
<!-- end symbol buttons -->
<!-- delete char button -->
<!-- <button class="btn btn-danger float-end" onclick="deleteChar()" type="button">c</button> -->
<textarea name="grammar" id="grammar-text-area" cols="25" rows="4"
class="form-text fs-3 d-block rounded fw-light"
placeholder="S → AB | λ A → Aa | b B → ab | λ" spellcheck="false"
onkeyup="changeToSymbol(this)">
</textarea>
<button type="button" class="btn btn-success w-100 mt-1" onclick="main()" id="check-btn">Check</button>
</div>
</form>
<!-- show result -->
<div class="d-flex justify-content-between mt-3 flex-wrap" id="result">
<div class="first-div">
<p class="fs-1 fw-lighter text-start" id="first"></p>
</div>
<div class="">
<p class="fs-1 fw-lighter text-start" id="follow"></p>
</div>
</div>
</main>
</body>
<script src="assets/jquery.min.js"></script>
<script src="assets/sweetalert2@11.js"></script>
<script src="assets/bootstrap.min.js"></script>
<script src="assets/js/script.js"></script>
</html>