Skip to content

Commit

Permalink
Replace labels without for attr to spans
Browse files Browse the repository at this point in the history
  • Loading branch information
slowli committed Sep 26, 2023
1 parent 0007b93 commit e77e34c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ <h1>bech32-buffer</h1>
<div class="col-12 form-text text-muted small">A short tag describing what a Bech32-encoded string is used for.</div>
</div>
<div class="mb-3 row">
<label class="col-3 col-form-label">Encoding</label>
<span class="col-3 col-form-label">Encoding</span>
<div class="col-9">
<div class="btn-group" role="group">
<input type="radio" class="btn-check" name="encoding-options" id="encoding-bech32" autocomplete="off">
Expand All @@ -126,7 +126,7 @@ <h1>bech32-buffer</h1>
</div>
<div class="tab-pane active" id="encode-btc" role="tabpanel" aria-labelledby="encode-btc-tab">
<div class="mb-3 row">
<label class="col-3 col-form-label">Network</label>
<span class="col-3 col-form-label">Network</span>
<div class="col-9">
<div class="btn-group" role="group">
<input type="radio" class="btn-check" name="btc-network-options" id="btc-mainnet" autocomplete="off" checked>
Expand All @@ -151,7 +151,7 @@ <h1>bech32-buffer</h1>
<div class="form-text text-muted small">Binary data (in hex) to be encoded into Bech32.</div>
</div>

<button type="button" id="encode" class="btn btn-primary" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="bottom" data-bs-content="Encode!">Encode</button>
<button type="button" id="encode" class="btn btn-primary" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="bottom" data-bs-content="Encode">Encode</button>
<a id="random" title="Generate random data" class="ms-3" href="#">Random data</a>
</form>
</div>
Expand All @@ -170,7 +170,7 @@ <h3 class="card-header align-header-height">Bech32</h3>
<div class="form-text text-muted small">Encoded Bech32 string.</div>
</div>

<button type="button" id="decode" class="btn btn-primary" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="top" data-bs-content="Decode!">Decode</button>
<button type="button" id="decode" class="btn btn-primary" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="top" data-bs-content="Decode">Decode</button>
</form>
</div>
</div>
Expand All @@ -193,7 +193,7 @@ <h3 class="card-header align-header-height">Bech32</h3>

<script>
/* eslint-env browser */
/* global bech32 */
/* global bech32, bootstrap */
(function () {
/**
* Converts a byte array into a hex string.
Expand All @@ -218,7 +218,7 @@ <h3 class="card-header align-header-height">Bech32</h3>
}
let buffer = new Uint8Array(str.length / 2);
for (let i = 0; i < buffer.length; i++) {
buffer[i] = parseInt(str.substr(2 * i, 2), 16);
buffer[i] = parseInt(str.substring(2 * i, 2 * i + 2), 16);
}
return buffer;
}
Expand Down

0 comments on commit e77e34c

Please sign in to comment.