-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (47 loc) · 1.3 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
<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<title>NA</title>
</head>
<style>
#error {
color: red;
background-color: yellow;
display: none;
}
.ruleLeft,
.ruleRight,
#iterationLimit {
width: 100px;
}
#word{
width: 300px;
}
</style>
<body>
<h3>Add rule ("$" - stop)( "_" - space)</h3>
<div id="rules">
<div id="1">
<div class="rule">
<span class="indexRule">Rule ?:</span>
<input type="text" class="ruleLeft" placeholder="none" onkeypress='validate(event,this.id)' />
<span>→</span>
<input type="text" class="ruleRight" placeholder="none" onkeypress='validate(event,this.id)' />
<input type="button" class="addDown" value="↓ add" onclick="addDown(this)" />
<input type="button" class="deleteRule" value="X" onclick="deleteRule(this)" />
</div>
</div>
</div>
<h3>Iteration limit
<input type="text" id="iterationLimit" value="2000" onkeypress='validate(event,this.id)' />
</h3>
<h3>Enter word
<input type="text" id="word" placeholder="none" onkeypress='validate(event,this.id)' />
<input type="button" id="solve" value="Solve" onclick="solve()" />
</h3>
<div id="target"></div>
<div id="progress"></div>
<div id="error"></div>
</body>
<script src="main.js"></script>
</html>