forked from eddiekrystowski/water-jug-search
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
123 lines (110 loc) · 4.66 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="https://cdn.glitch.com/b74768ec-7360-4f3b-b4ce-ae2600a9fe6f%2Fwater-water-bottle-bottle.png?v=1619807352329" />
<title>Water Jug Search</title>
<!-- import the webpage's stylesheet -->
<link rel="stylesheet" href="/Treant/Treant.css" />
<link rel="stylesheet" href="/Treant/perfect-scrollbar.css" />
<link rel="stylesheet" href="/style.css" />
<script src="https://code.jquery.com/jquery-3.6.0.js" integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk=" crossorigin="anonymous"></script>
<!-- Tree Drawing Library (Treant.js) -->
<script src="/Treant/wheel-raphael.js"></script>
<script src="/Treant/jquery.min.js"></script>
<script src="/Treant/jquery.mousewheel.js"></script>
<script src="/Treant/jquery.easing.js"></script>
<script src="/Treant/perfect-scrollbar.js"></script>
<script src="/Treant/Treant.js"></script>
<!-- Main Javascript Files -->
<script src="/Jug.js"></script>
<script src="/Search.js"></script>
<script src="/script.js" defer></script>
</head>
<body>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<div id="main" class="reg-text">
<!-- Tree Divs -->
<div id="treeWrapper">
<div id="treeContainer"></div>
</div>
<div id="menu">
<!-- INPUT FORM -->
<form id="search-form" class="reg-text">
<!-- JUG TABLE -->
<table id="inputTable">
<tbody>
<tr>
<th style="border:none; background-color:#d4d2d2;"></th>
<th>Jug A</th>
<th>Jug B</th>
</tr>
<tr>
<td>size:</td>
<td><input type="number" class="integer-input" id="jug1-size" step="1" value="3" min="1"></td>
<td><input type="number" class="integer-input" id="jug2-size" step="1" value="5" min="1"></td>
</tr>
<tr>
<td>goal:</td>
<td><input id="Lgoal-state" class="integer-input" type="number" step="1" value="0" min="0"></td>
<td><input id="Rgoal-state" class="integer-input" type="number" step="1" value="4" min="0"></td>
</tr>
</tbody>
</table>
<!-- END OF JUG TABLE -->
<!-- OPERATION RANKINGS -->
<div id="operationsDiv" class="small-text">
<p style="text-decoration:underline; margin-bottom:5px;">
<strong>Operation Order:</strong>
</p>
<div id="operationsWrapper">
<div id="numsDiv">
<p>1.</p>
<p>2.</p>
<p>3.</p>
<p>4.</p>
<p>5.</p>
<p>6.</p>
</div>
<div id="rankDiv" class="holder">
<p class="rank" data-action="fill a">Fill Jug A</p>
<p class="rank" data-action="fill b">Fill Jug B</p>
<p class="rank" data-action="empty a">Empty Jug A</p>
<p class="rank" data-action="empty b">Empty Jug B</p>
<p class="rank" data-action="transfer a b">Transfer Jug A to Jug B</p>
<p class="rank" data-action="transfer b a">Transfer Jug B to Jug A</p>
</div>
</div>
</div>
<!-- END OF OPERATION RANKINGS -->
<!-- SEARCH TYPE RADIO SELECTION -->
<p style="text-decoration:underline; margin-bottom:5px; float:left;">
<strong>Search Type:</strong>
</p>
<div>
<input type="radio" id="BFS" name="searchType" value="BFS" checked>
<label for="BFS">Breadth First Search</label>
<br>
<input type="radio" id="DFS" name="searchType" value="DFS">
<label for="DFS">Depth First Search</label><br>
</div>
<br>
<!-- END OF SEARCH TYPE RADIO SELECTION -->
<input id="resetButton" type="reset" style="margin-left:45%;">
</form>
<!-- END OF INPUT FORM -->
<!-- BOTTOM MENU BUTTONS -->
<div id="bottom-buttons-div">
<button id="search" class ="menu-button reg-text">
Search
</button>
<button id="toggleCollapseButton" class="collapse-all menu-button reg-text">Collapse All</button>
</div>
<!-- END OF BOTTOM MENU BUTTONS -->
</div>
<!-- END MENU -->
</div>
<!-- END MAIN -->
</body>
</html>