-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Copy pathindex.html
92 lines (86 loc) · 2.7 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>DataStructures | Stacks & Queues</title>
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="styles/style.css" />
</head>
<body>
<h1 class="text-center">Data Structures</h1>
<div class="container" id="container">
<div class="row">
<div class="col-sm-4">
<h2>Stack</h2>
<div class="form-group">
<label for=""></label>
<input
class="form-control"
id="stack-input"
placeholder="Add element to the stack"
/>
</div>
<button
id="add-stack"
type="button"
class="btn btn-primary btn-block"
>
Add to stack
</button>
<button
id="take-stack"
type="button"
class="btn btn-danger btn-block"
>
Remove from stack
</button>
<div class="stack-container" id="stack-container">
<div class="warning-top alert alert-danger"></div>
<ul id="stack-list" class="list-stack"></ul>
<div class="warning-bottom alert alert-danger"></div>
</div>
</div>
<div class="col-sm-1"></div>
<div class="col-sm-7">
<h2>Queue</h2>
<div class="form-group">
<label for=""></label>
<input
class="form-control queue-input"
id="queue-input"
placeholder="Add element to the queue"
/>
</div>
<button
id="add-queue"
type="button"
class="btn btn-primary btn-block btn-add-queue"
>
Add to queue
</button>
<button
id="take-queue"
type="button"
class="btn btn-danger btn-block btn-take-dequeue"
>
Remove from queue
</button>
<div class="stack-container" id="queue-container">
<div class="warning-top alert alert-danger"></div>
<ul id="queue-list" class="list-queue"></ul>
<div class="warning-bottom alert alert-danger"></div>
</div>
</div>
</div>
</div>
<script src="src/stack/stack-data-structure.js"></script>
<script src="src/queue/queue-data-structure.js"></script>
<script src="src/stack/stack-dom.js"></script>
<script src="src/queue/queue-dom.js"></script>
</body>
</html>