Skip to content

Commit

Permalink
auto select
Browse files Browse the repository at this point in the history
  • Loading branch information
Lomet committed Dec 22, 2024
1 parent e404ff2 commit 681b18c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions view/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
margin: 10px 0;
padding: 5px;
}

button {
padding: 5px 10px;
margin-left: 10px;
}
</style>
</head>

Expand All @@ -33,7 +28,6 @@ <h1>Available Chains</h1>
<!-- This placeholder will be replaced with real options -->
{{CHAIN_OPTIONS_PLACEHOLDER}}
</select>
<button onclick="loadSelectedChain()">Load JSON</button>

<h2>JSON Viewer</h2>
<div id="jsoneditor"></div>
Expand Down Expand Up @@ -67,6 +61,9 @@ <h2>JSON Viewer</h2>
editor.set({ error: error.message });
});
}

// Add change event listener to the dropdown
dropdown.addEventListener("change", loadSelectedChain);
</script>
</body>

Expand Down

0 comments on commit 681b18c

Please sign in to comment.