-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex1.html
114 lines (86 loc) · 4.04 KB
/
index1.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>AlgoVisualizer</title>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="newlogo.jpeg">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous" />
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div class="tools-wrapper">
<!-- <button type="button" id = "start" class="btn btn-outline-dark" onclick = "play()">Start</button> -->
<h4 style="font-family:verdana;font-weight: 500;">ALGO VISUALIZER </h4>
<hr>
<br>
<span id="enter_a_number" class="badge rounded-pill bg-primary"> Distance :</span>
<input type="text" class="displayDistance">
<span class="badge rounded-pill bg-primary" style="font-size: 15px" id="interactiveText">Interactive mode</span>
<input type="checkbox" id="interactive" onclick="plot()">
<button id="dijkstra" class="btn btn-danger" onclick="callDijkstra()">Dijkstra</button>
<button id="selectNode" class="btn btn-success" onclick="selectNode()">Start-Finish</button>
<div class="plotting">
<!-- <button class="btn btn-dark" onclick = "flipcity()">PlotCities</button> -->
<button id="plotGraphBtn" class="btn btn-danger" onclick="flipgraph()">PlotGraph</button>
<hr id=hr1>
</div>
<br>
<br>
<br>
<br>
<div class="Algo">
<br>
<br>
<h3 class="head"><span class="badge bg-dark">Select Algorithm</span></h3>
<button id="bruteforce" onclick="flip()">Bruteforce</button>
<button id="plotGraph" onclick="flipBfs()">BFS</button>
<button class = "btn btn-dark" id="clear" onclick="reset()">Clear</button>
<br>
<br>
<br>
<!-- <input type="checkbox" id="play"> -->
</div>
<div class="speed">
<br>
<h3 class="head1" style="font-family:cursive ;" id="speedText"><span class="badge bg-dark">Speed Manager
</h3>
<button id="increase" style="margin:10px;" onclick="increment()">+</button>
<button id="decrease" style="margin:10px;" onclick="decrement()">-</button>
</div>
<div class="adjacencylist">
<div class="heading">
<br>
<h2 class="head3" style="font-family:cursive ;"><span class="badge bg-dark">Edge Creation <h2>
</div>
<button type="button" style="margin:3px;" class="btn btn-danger" Small button
onclick="plotEdge()">CreateEdge</button>
<br>
<br>
<input type="text" placeholder="Start edge" id="inputEdge">
<input type="text" placeholder="End edge" id="src-dest">
<br>
<hr id="hr3">
<button type="button" id="start" class="btn btn-outline-dark" onclick="play()">Start</button>
</div>
</div>
<div id="canvas">
</div>
<script src="mess.js"></script>
<script src="lineDijkstra.js"></script>
<script src="sketch.js"></script>
<script src="libraries/p5.min.js"></script>
<!-- <script src = "libraries/p5.sound.min.js"></script> -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.6.0/dist/umd/popper.min.js"
integrity="sha384-KsvD1yqQ1/1+IA7gi3P0tyJcT3vR+NdBTt13hSJ2lnve8agRGXTTyNaBYmCR/Nwi"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.min.js"
integrity="sha384-nsg8ua9HAw1y0W1btsyWgBklPnCUAFLuTMS2G72MMONqmOymq585AcH49TLBQObG"
crossorigin="anonymous"></script>
</body>
</html>