-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
65 lines (62 loc) · 3.24 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Data Structure Operation Visualizer</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1 class="text-center mb-4 mt-3 text-dark">Data Structure and Sorting Visualizer</h1>
<div class="controls text-center mb-4">
<input type="number" id="valueInput" class="form-control d-inline-block w-auto mr-2 mb-2"
placeholder="Enter value">
<aside>
<button onclick="addArray()" class="btn btn-primary mb-2">Add to Array</button>
<button onclick="removeArray()" class="btn btn-danger mb-2">Remove from Array</button>
<button onclick="enqueue()" class="btn btn-success mb-2">Enqueue</button>
<button onclick="dequeue()" class="btn btn-warning mb-2">Dequeue</button>
<button onclick="pushStack()" class="btn btn-info mb-2">Push to Stack</button>
<button onclick="popStack()" class="btn btn-secondary mb-2">Pop from Stack</button>
<button onclick="insertLinkedList()" class="btn btn-dark mb-2">Insert LinkedList</button>
<button onclick="deleteLinkedList()" class="btn btn-light mb-2">Delete LinkedList</button>
</aside>
</div>
<div id="visualization" class="text-center">
<div id="array" class="mb-4 text-dark"></div>
<div id="queue" class="mb-4 text-dark"></div>
<div id="stack" class="mb-4 text-dark"></div>
<div id="linkedlist" class="mb-4 text-dark"></div>
</div>
<!-- Chatbot container -->
<div class="chatbot-container">
<div class="chatbox">
<div class="chatbox-header">
Chatbot
<button id="chatbox-close" onclick="toggleChatbox()">X</button>
</div>
<div class="chatbox-content" id="chatbox-content">
<!-- Chat messages will be appended here -->
</div>
<div class="chatbox-input">
<input type="text" id="user-input" placeholder="Type a message...">
<div class="button"></div>
<button onclick="sendMessage()">Send</button>
</div>
</div>
<button id="chatbox-toggle" onclick="toggleChatbox()">Chat</button>
</div>
<!-- <div class="container text-center">
<h2 class="my-4 text-dark">Sorting Visualizer</h2>
<div id="array-container" class="d-flex align-items-end justify-content-center"></div>
<button class="btn btn-primary mt-4" onclick="bubbleSort()">Bubble Sort</button>
</div> -->
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script src="script.js"></script>
</body>
</html>