Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
guru
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
guru
Commits
7e27df9e
Commit
7e27df9e
authored
Oct 18, 2018
by
Clint Mourlevat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding copy to clipboard button
parent
c40bf2b3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
Generator.cshtml
Views/Home/Generator.cshtml
+14
-3
No files found.
Views/Home/Generator.cshtml
View file @
7e27df9e
...
...
@@ -16,7 +16,7 @@
</div>
<input type="text" class="form-control bg-dark" value="@Model.PublicKey">
<div class="input-group-append">
<button class="btn btn-success" type="button"><i class="fa fa-copy"></i> Copy</button>
<button class="btn btn-success
click-copy
" type="button"><i class="fa fa-copy"></i> Copy</button>
</div>
</div>
<p class="m-0">This is the adress than you share with others.</p>
...
...
@@ -30,7 +30,7 @@
</div>
<input type="text" class="form-control bg-dark" value="@Model.PrivateKey">
<div class="input-group-append">
<button class="btn btn-success" type="button"><i class="fa fa-copy"></i> Copy</button>
<button class="btn btn-success
click-copy
" type="button"><i class="fa fa-copy"></i> Copy</button>
</div>
</div>
<p class="m-0 danger">This is your spent key that you keep in safety.</p>
...
...
@@ -45,3 +45,14 @@
</div>
</div>
</section>
@section Scripts
{
<script type="text/javascript">
$(document).ready(function() {
$(".click-copy").click(function() {
$(this).parent().parent().find("input").select();
document.execCommand("copy");
});
});
</script>
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment