diff --git a/view/index.html b/view/index.html
index 6baca74..a235b69 100644
--- a/view/index.html
+++ b/view/index.html
@@ -16,6 +16,11 @@
margin: 10px 0;
padding: 5px;
}
+
+ a {
+ margin-left: 10px;
+ display: inline-block;
+ }
@@ -28,6 +33,7 @@
Available Chains
{{CHAIN_OPTIONS_PLACEHOLDER}}
+ Open JSON File
JSON Viewer
@@ -37,6 +43,7 @@ JSON Viewer
const editor = new JSONEditor(container);
const dropdown = document.getElementById("chainDropdown");
+ const jsonLink = document.getElementById("jsonLink");
// Load JSON for the selected chain
function loadSelectedChain() {
@@ -46,6 +53,11 @@ JSON Viewer
return;
}
+ // Update the link to the JSON file
+ jsonLink.href = selectedValue;
+ jsonLink.style.display = "inline-block";
+
+ // Fetch and display the JSON data
fetch(selectedValue)
.then(response => {
if (!response.ok) {