Repository navigation
Expand file tree
/
Copy pathdataStructureHT.html
More file actions
113 lines (109 loc) · 4.63 KB
/
Copy pathdataStructureHT.html
File metadata and controls
113 lines (109 loc) · 4.63 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel = "stylesheet" href="../bootstrapp/css/bootstrap.min.css">
<!-- <link rel = "stylesheet" href = "bootstrap_pro_1_css.css"> -->
<link rel = "stylesheet" href = "dataStructureCss.css">
<title>Data Structure</title>
</head>
<body>
<div class = "container" style = "margin-top: 0px;">
<h1 class = "jumbotron">Array Visualizer</h1>
</div>
<div class = "container ">
<div class = "row">
<div class = "col-sm-3 space text-center">
<button id = "enterElement" type = "button" class = "btn btn-outline-primary">Enter Element</button>
</div>
<div class = "col-sm-3 space text-center">
<button id = "getElement" type = "button" class = "btn btn-outline-success">Get Element</button>
</div>
<div class = "col-sm-3 space text-center">
<button id = "deleteElement" type = "button" class = "btn btn-outline-danger">Delete Element</button>
</div>
<div class = "col-sm-3 space text-center">
<button id = "printArrayButton" type = "button" class = "btn btn-outline-info">Print Array</button>
</div>
</div>
</div>
<div class = "container">
<div style = "display: none;" id = "enterElementDiv">
<div class = "row">
<div class = "col-sm-12 text-center">
<h3>Enter the element to add in Array</h3>
</div>
<div class = "col-sm-12 space text-center">
<input id = "enterElementInput" type = "number">
</div>
<div class = "col-sm-12 space text-center">
<button id = "enterData" class = "btn btn-primary">Enter Data</button>
</div>
<div class = "col-sm-12 text-center">
<h3 id = "successMessage" class = "container"></h3>
</div>
</div>
</div>
</div>
<div class = "container">
<div style = "display: none;" id = "getElementDiv">
<div class = "row">
<div class = "col-sm-12 text-center">
<h3>Get Element at entered index</h3>
</div>
<div class = "col-sm-12 space text-center">
<input id = "indexOfElement" type = "number">
</div>
<div class = "col-sm-12 space text-center">
<button id = "getElementButton" class = "btn btn-primary">Get Element</button>
</div>
<div class = "col-sm-12 text-center">
<h3 id = "valueAtGivenIndex" class = "container"></h3>
</div>
</div>
</div>
</div>
<div class = "container">
<div style = "display: none;" id = "deleteElementDiv">
<div class = "row">
<div class = "col-sm-12 text-center ">
<h3>Enter the Element that you want to delete</h3>
</div>
<div class = "col-sm-12 text-center space">
<input type = "number" id = "deleteNumberInput">
</div>
<div class = "col-sm-12 text-center space">
<button id = "deleteElementButton" type = "button" class = "btn btn-primary">Delete Element</button>
</div>
<div class = "col-sm-12 text-center">
<h3 id = "deleteResultShown" class = "container"></h3>
</div>
</div>
</div>
</div>
<div class = "container">
<div style = "display: none;" id = "printArrayDiv">
<div class = "row">
<div class = "col-sm-12 text-center" style = "font-size: 30px;">
<span>[ </span>
<span id = "printArray" ></span>
<span> ]</span>
</div>
</div>
</div>
</div>
<div class = "container">
<div class = "row">
<div class = "col-sm-12 text-center">
<a href = "../index.html" class = "btn btn-warning">Main Menu</a>
</div>
</div>
</div>
<script src = "dataStructure.js"></script>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src = "../bootstrapp/js/jquery-3.5.1.js"></script>
<script src = "../bootstrapp/js/bootstrap.min.js"></script>
</body>
</html>