Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup github pages #63

Merged
merged 8 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules/
node_modules/
.DS_Store
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ If the version to be installed is not defined in the command line, it will insta

A standalone HTML project to get the RSK bridge methods selectors and events topics is included under `/tools` folder, called `PrecompiledAbis.html`.

Simply download it and open it in the browser.
Simply download it and open it in the browser, or visit [https://rsksmart.github.io/precompiled-abis/](https://rsksmart.github.io/precompiled-abis/) to view the available HTML tools directly from this repo.

<img src="./tools/precompiledAbisMethods.png" alt="Rootstock bridge abis methods" />

Expand Down
66 changes: 66 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,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/[email protected]/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>
Loading
Loading