-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathqueues.html
More file actions
46 lines (35 loc) · 1.37 KB
/
queues.html
File metadata and controls
46 lines (35 loc) · 1.37 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="queues.css" />
<script src="queues.js"></script>
<title>Queues</title>
</head>
<body>
<h1 id="queues-ds">Queues</h1>
<div class="operations">
<!-- Creating the Queue -->
<button onclick="createEmptyQueue()">Create</button>
<!-- Input Elements -->
<input type="text" id="insertElementInput" placeholder="Enqueue element" autocomplete="off">
<button onclick="enqueueElement()">Enqueue</button>
<!-- Delete Elements -->
<button onclick="dequeueElement()">Dequeue</button>
<!-- Check Front Element -->
<button onclick="checkFront()">Check Front</button>
<!-- Check Rear Element -->
<button onclick="checkRear()">Check Rear</button>
<!-- Display the Queue-->
<button onclick="displayQueue()">Display</button>
<!-- Return to Main Menu -->
<button onclick="returnMenu()">Back to Main Menu</button>
</div>
<!-- Displaying the Stack-->
<div id="queues-container" class="queues-element"></div>
<!-- Displaying what's happening -->
<div id="response"></div>
</body>
</html>