-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
66 lines (58 loc) · 2.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href='https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css' rel='stylesheet' integrity='sha512-b2QcS5SsA8tZodcDtGRELiGv5SaKSk1vDHDaQRda0htPYWZ6046lr3kJ5bAAQdpV2mmA/4v0wQF9MyU6/pDIAg==' crossorigin='anonymous'>
<title>Index</title>
<style>
body {
padding-top: 40px;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top">
<div class="container">
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" id="bridgeMethodsContainerLink" href="#bridgeMethodsContainer" data-bs-toggle="collapse" aria-expanded="false">Bridge Methods</a>
</li>
<li class="nav-item">
<a class="nav-link" id="bridgeABIsContainerLink" href="#bridgeABIsContainer" data-bs-toggle="collapse" aria-expanded="false">Bridge ABIs</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="mt-5">
<div class="collapse show" id="bridgeMethodsContainer">
<iframe src="tools/RootstockBridge.html" frameborder="0" width="100%" height="1000px"></iframe>
</div>
<div class="collapse p-2" id="bridgeABIsContainer">
<iframe src="tools/PrecompiledAbis.html" frameborder="0" width="100%" height="1000px"></iframe>
</div>
</div>
<script>
bridgeMethodsContainerLink.addEventListener('click', event => {
bridgeABIsContainerLink.classList.remove('active');
bridgeMethodsContainerLink.classList.add('active');
bridgeMethodsContainer.classList.add('show');
bridgeABIsContainer.classList.remove('show');
});
bridgeABIsContainerLink.addEventListener('click', event => {
bridgeMethodsContainerLink.classList.remove('active');
bridgeABIsContainerLink.classList.add('active');
bridgeMethodsContainer.classList.remove('show');
bridgeABIsContainer.classList.add('show');
});
const loadPageOnLocationHash = () => {
if (location.hash === '#bridgeABIsContainer') {
bridgeABIsContainerLink.click();
}
};
loadPageOnLocationHash();
</script>
</body>
</html>