Skip to content

Commit

Permalink
Remove copy on load option
Browse files Browse the repository at this point in the history
  • Loading branch information
mzyy94 committed Mar 2, 2024
1 parent ac5c02f commit 505edba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ <h1>BlueBookmark</h1>
<label for="passField" data-lang-ja="アプリパスワード">App Password</label>
<input type="password" autocomplete="current-password" placeholder="bsky-app-pass-word" id="passField"
name="password" required>
<div class="float-right">
<input type="checkbox" id="copyToken" checked>
<label class="label-inline" for="copyToken">Copy token on complete</label>
</div>
<input class="button-primary" type="submit" value="Create Token">
</fieldset>
</form>
Expand Down
2 changes: 1 addition & 1 deletion src/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createMiddleware } from 'hono/factory';
import { html } from 'hono/html';

const tokenResult = (token: string) => html`
<input id="token" value="${token}" hx-on:focus="this.select()" hx-on:click="copyToClipboard()" hx-on::load="htmx.find('#copyToken').checked && copyToClipboard(true)">
<input id="token" value="${token}" hx-on:focus="this.select()" hx-on:click="copyToClipboard()">
`;

const errorResult = (error: string) => html`
Expand Down

0 comments on commit 505edba

Please sign in to comment.