-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a92cbad
commit fd5dd9c
Showing
4 changed files
with
25 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/clipboard.min.js"></script> | ||
<script | ||
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/clipboard.min.js" | ||
> | ||
</script> | ||
|
||
<div class="text-center"> | ||
Secret "<strong><%= @secret.title %></strong>" successfully created | ||
|
||
<div class="mt-2 grid grid-cols-10"> | ||
<div class="col-span-9"> | ||
<.input name="urlToCopy" id="urlToCopy" value={ url(~p"/secrets/#{@secret.id}") } readonly /> | ||
<.input | ||
name="urlToCopy" | ||
id="urlToCopy" | ||
value={url(~p"/secrets/#{@secret.id}")} | ||
readonly | ||
/> | ||
</div> | ||
|
||
<div class="mt-4"> | ||
<span | ||
class="cursor-pointer clipit" | ||
data-clipboard-target="#urlToCopy" | ||
> | ||
<span class="cursor-pointer clipit" data-clipboard-target="#urlToCopy"> | ||
<.icon name="hero-document-duplicate-solid" class="h-5 w-5" /> | ||
</span> | ||
</div> | ||
|
@@ -26,5 +30,4 @@ | |
alert("Copied to clipboard"); | ||
e.clearSelection(); | ||
}); | ||
</script> | ||
</script> |