-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
125 lines (115 loc) · 6.17 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<title> Lighthouse - Lightning network explorer </title>
<style>
body {
padding-top: 4.5rem;
}
</style>
<script src="https://cdn.jsdelivr.net/npm/d3@7"></script>
<script src="https://cdn.jsdelivr.net/npm/d3-force@3"></script>
<script src='index.js' type='module'></script>
</head>
<body>
<nav class="navbar navbar-expand-md fixed-top border-bottom">
<div class="container-fluid">
<a class="navbar-brand" href="#" style="color: #dd7f13"> Lighthouse - Lightning Network Explorer </a>
<!--
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav me-auto mb-2 mb-md-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">About</a>
</li>
</ul>
</div>
-->
</div>
</nav>
<main class="container border p-2 rounded">
<div class='row'>
<div class="col-12 col-sm-9 col-md-9 col-lg-10">
<div id="breadCrumb" class='bg-light text-secondary p-2 w-100' style="display: flex; gap: 12px;" > </div>
</div>
<div class="col-12 col-sm-3 col-md-3 col-lg-2 text-end">
<button type="button" class="btn btn-secondary" id="resetBtn"> Reset </button>
<button type="button" class="btn btn-secondary" id="helpBtn"> ? </button>
</div>
</div>
<div class='row' style='height: 80vh'>
<div class='col-12' id='renderBoxParent' style='position: relative'>
<svg id="renderBox" class='w-100 h-100'></svg>
<div id='spinOverlay' class='h-100 bg-dark' style='width: 96%; opacity: 0.25; position: absolute; top: 0px'>
</div>
<div id='spinSpinner' class="spinner-border" role="status" style='position: absolute; top: 48%; left: 48%'>
<span class="visually-hidden">Loading...</span>
</div>
</div>
</div>
</main>
<footer class="mt-4 p-4 border-top">
<div class="row">
<div class="col-12 text-center">
Powered by Lighthouse
</div>
</div>
</footer>
<div class="modal fade" id="nodeTipModel" tabindex="-1" aria-labelledby="nodeTipModel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"> Node / Channel Info </h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div id='nodeTipBody' class="modal-body" style='overflow-wrap: anywhere'>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="helpModel" tabindex="-1" aria-labelledby="helpModel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"> About </h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body" style='overflow-wrap: anywhere'>
<b> Hint </b>
<ol>
<li>Double click/tap on end Nodes, channel links to view info.</li>
</ol>
<b> About this tool </b>
<p>
- Here is our version of LN Explorer. <br/>
- Nodes categorized by Channel capacity.
- Suggestions welcome.
</p>
<b> Source code @ </b>
<p>
<a target='_blank' href='https://github.com/saravanan7mani/lighthouse'>https://github.com/saravanan7mani/lighthouse</a>
<a target='_blank' href='https://github.com/saravanan7mani/lighthouse-web'>https://github.com/saravanan7mani/lighthouse-web</a>
</p>
<b> React us at </b>
<p> <a href='https://twitter.com/saravananmani_' target='_blank'> @saravananmani_</a>, <a href='https://twitter.com/saiy2k' target='_blank'> @saiy2k</a> </p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
</body>
</html>