-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
64 lines (63 loc) · 3.16 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<title>Cory's Data Structure App</title>
<script src = "go.js"></script>
<link href = "index.css" rel = "stylesheet" type = "text/css">
</head>
<body onload="init()">
<h1>Diagrams to Manipulate</h1>
<div id = "ModDiagrams">
<div id = "ModDiagram1" style="border: 1px solid black; float:left" ></div>
<div id = "ModDiagram2" style="border: 1px solid black; float:left"></div>
<div id = "ModDiagram3" style="border: 1px solid black; float:left"></div>
</div>
<div id = "ButtonsDiv">
<div id = "Diagram1Buttons">
<div id = "InnerDiagram1Buttons">
<select id = "Remove-List1" class="combo">
<option value="Select">Select....</option>
</select><br>
<button id = "Remove-Button1", onclick = "remove_node(1, Diagram1 ,selectors.options1)">Remove Node 1</button><br>
<label for="New-Node-Name1">New Node 1:</label><br>
<input type="text" id="New-Node-Name1" name="New-Node-Name1"><br>
<button id = "Add-Button1", onclick = "add_node(1, Diagram1 ,selectors.options1)">Add Node 1</button><br>
</div>
</div>
<div id = "Diagram2Buttons">
<div id = "InnerDiagram2Buttons">
<select id = "Remove-List2" class="combo">
<option value="Select">Select....</option>
</select><br>
<button id = "Remove-Button2", onclick = "remove_node(2, Diagram2 ,selectors.options2)">Remove Node 2</button><br>
<label for="New-Node-Name2">New Node 2:</label><br>
<input type="text" id="New-Node-Name2" name="New-Node-Name2"><br>
<button id = "Add-Button2", onclick = "add_node(2, Diagram2 ,selectors.options2)">Add Node 2</button><br>
</div>
</div>
<div id = "Diagram3Buttons" >
<div id = "InnerDiagram3Buttons">
<select id = "Remove-List3" class="combo">
<option value="Select">Select....</option>
</select><br>
<button id = "Remove-Button3", onclick = "remove_node(3, Diagram3 ,selectors.options3)">Remove Node 3</button><br>
<label for="New-Node-Name3">New Node 3:</label><br>
<input type="text" id="New-Node-Name3" name="New-Node-Name3"><br>
<button id = "Add-Button3", onclick = "add_node(3, Diagram3 ,selectors.options3)">Add Node 3</button><br>
</div>
</div>
<div id = "OptsetDiv">
<button id = "Log OptSet", onclick = "log_optset()">Log OptSet</button><br>
<button id = "Merge", onclick = "merge_optset()">Merge</button><br>
<button id = "Classify", onclick = "classify_tree()">Classify</button><br>
<button id = "Balance", onclick = "balance_tree()">Balance</button><br>
</div>
</div>
<div id = "ResultDiagramDiv">
<h2>Resultant Diagram</h2>
<div id = "DiagramResult" style="border: 1px solid black; margin:0 auto" ></div>
</div>
<script src = "index.js"></script>
</body>
</html>