-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
97 lines (85 loc) · 3.87 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
93
94
95
96
97
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Graph Craft | Graph Visualization & Analysis</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<link href="style.css" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/cytoscape/3.28.1/cytoscape.min.js"
integrity="sha512-RcuA+PEnJcg1caTn53YLhZ3bYVFXphzcPL1BjBoAwFiA3bErav+AndZz1xrqpAtv/8Waep2X+9zn8KWpwacUSA=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</head>
<body>
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<div class="container-fluid">
<a class="navbar-brand" href="#">Graph Craft | Visualization & Analysis</a>
<a href="https://github.com/SharafatKarim/GraphCraft"><button class="btn btn-outline-success" type="submit">GitHub repo</button></a>
</div>
</nav>
<div class="container">
<h2>Input Data</h2>
<div class="mb-3">
<label for="adjMatInp" class="form-label">Enter your input (adjacency matrix)</label>
<textarea class="form-control" id="adjMatInp" rows="4"
placeholder="An example 🎨 2 3 1 6 5 3 2 1 9">
</textarea>
</div>
<button class="btn btn-success" id="myButton">Analyze data</button>
<button class="btn btn-danger" id="clearGraph">Clear graph</button>
<button class="btn btn-primary" onclick="location.reload()">Refresh</button>
</div>
<div class="cy-container">
<div class="cy-class" id="cy"></div>
</div>
<div class="container text-center">
<div class="row align-items-end">
<div class="col" id="parentAdjMatTable">
<!-- --------- table 01 --------- -->
<h2 id="adjText" style="visibility: hidden;">Adjacency Matrix</h2>
<div id="adjMatTable"></div>
</div>
<div class="col" id="linkedTab">
<!-- --------- table 02 --------- -->
<h2 id="lnkText" style="visibility: hidden;">Linked Representation</h2>
<div id="linkedRepTable"></div>
</div>
</div>
</div>
<!-- -------------- dropdown menu ------------------ -->
<div class="container text-center">
<div class="row">
<div class="col" id="parentAdjMatTable">
<!-- ------------Warshall's Algorithm -->
<h2 id="warText" style="visibility: hidden;">Warshall's Algorithm</h2>
<div id="warMatTable"></div>
</div>
<div class="col" id="linkedTab">
<!-- ------------Path Matrix -->
<h2 id="pathText" style="visibility: hidden;">Path Matrix</h2>
<div id="pathMatTable"></div>
</div>
</div>
</div>
<div class="container-sm text-center">
<!-- ------------warshall's Algorithm -->
<h2 id="warText" style="visibility: hidden;">Warshall's Algorithm</h2>
<div id="warMatTable"></div>
</div>
<!-- ___ _
/'___) ( )_
| (__ _ _ | ,_) __ _ __
| ,__)/'_`\ /'_`\ | | /'__`\( '__)
| | ( (_) )( (_) )| |_ ( ___/| |
(_) `\___/'`\___/'`\__)`\____)(_)
-->
<footer class="text-center">
<div class="text-center mt-4">
<p class="mb-0">© 2024 <a href="https://github.com/SharafatKarim/">Sharafat Karim</a> | <a
href="https://creativecommons.org/licenses/by-nc/4.0/">CC BY-NC 4.0</a></p>
</div>
</footer>
<script src="main.js"></script>
</body>
</html>