-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·80 lines (66 loc) · 2.62 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>8-puzzle-visualization</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<script type="module" src="js/PriorityQueue.js"></script>
<script type="module" src="js/algorithm.js"></script>
<script type="module" src="js/event.js"></script>
<script type="module" src="js/animation.js"></script>
</head>
<body>
<!-- <span id="curState" style="display: none"></span>-->
<div class="container">
<div class="control">
<div class="displayState">
<div>
<span>start status: </span> <span id="startState">12345678x</span>
</div>
<div>
<span>target status: </span> <span id="endState">12345678x</span>
</div>
</div>
<div class="info">
<div>
<p>INFO</p>
<p id="infoText">Author: <a href="https://github.com/jinsuichen" target="_blank">Jinsui Chen</a></p>
</div>
</div>
<div class="setState">
<div>
<label>
<div>set start status</div>
<input type="text" id="startStateText"/>
<button id="setStartStateButton">Set</button>
</label>
</div>
<div>
<label>
<div>set target status</div>
<input type="text" id="endStateText"/>
<button id="setEndStateButton">Set</button>
</label>
</div>
</div>
<div class="action">
<button id="startButton">Start</button>
<button id="randButton">Rand</button>
<button id="resetButton">Reset</button>
<a href="mailto:[email protected]"><button id="feedbackButton">Feedback</button></a>
</div>
</div>
<div class="face">
<div class="item" id="item1">1</div>
<div class="item" id="item2">2</div>
<div class="item" id="item3">3</div>
<div class="item" id="item4">4</div>
<div class="item" id="item5">5</div>
<div class="item" id="item6">6</div>
<div class="item" id="item7">7</div>
<div class="item" id="item8">8</div>
<div class="item" id="itemx">X</div>
</div>
</div>
</body>
</html>