-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
72 lines (68 loc) · 2.42 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Bitcoin Transaction Explorer</title>
<link rel="icon" type="image/png" href="images/favicon.png" />
<link rel="stylesheet" href="css/styles.css" />
<script type="module" src="dist/main.js" defer></script>
</head>
<body>
<header>
<h1>Bitcoin Tx Color Coder</h1>
</header>
<main>
<form id="optionsForm">
<input type="radio" id="option1" name="option" value="option1" />
<label for="option1">Choose from a list of example transactions</label
><br />
<input type="radio" id="option2" name="option" value="option2" />
<label for="option2">Enter a transaction id (mainnet or testnet)</label><br />
<input type="radio" id="option3" name="option" value="option3" />
<label for="option3">Enter a raw transaction (hex)</label><br />
</form>
<br />
<!-- Option 1 -->
<div id="option1Form" class="hidden">
<b>Example transactions:</b>
</div>
<!-- Option 2 -->
<form id="option2Form" class="transaction-form hidden">
<input
type="text"
id="txidInput"
placeholder="Enter a transaction hash"
/>
<input type="submit" value="Fetch and parse transaction" />
</form>
<!-- Option 3 -->
<form id="option3Form" class="transaction-form hidden">
<input
type="text"
id="txHexInput"
placeholder="Enter a raw transaction (hex)"
/>
<input type="submit" value="Parse transaction" />
</form>
<div id="ExampleTransactionsContainer" class="hidden">
<div id="exampleTransactionDescription"></div>
</div>
<div id="react-txDetails" class="hidden"></div>
<div id="coloredTextContainer" class="hidden">
<h2>
Hover over a field to see its description; click to pin it.
</h2>
<pre id="coloredText"></pre>
<div class="detailed-view-container">
<label class="switch-label">Show all field descriptions</label>
<div class="toggle-switch">
<input type="checkbox" id="toggleSwitch" name="toggleSwitch">
<label for="toggleSwitch" class="switch"></label>
</div>
</div>
<ul id="tx-breakdown"></ul>
</div>
</main>
</body>
</html>