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
4d35ea02
Commit
4d35ea02
authored
Jan 01, 2019
by
Clint.Network
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Copy to Clipboard feature #18
parent
12d5dfab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
Address.cshtml
Stratis.Guru/Views/BlockExplorer/Address.cshtml
+18
-1
No files found.
Stratis.Guru/Views/BlockExplorer/Address.cshtml
View file @
4d35ea02
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<td><strong>Address</strong></td>
<td><strong>Address</strong></td>
<td>
<td>
<a class="to-copy" asp-controller="BlockExplorer" asp-action="Address" asp-route-address="@Model.address">@Model.address</a>
<a class="to-copy" asp-controller="BlockExplorer" asp-action="Address" asp-route-address="@Model.address">@Model.address</a>
<a href="#" class="copy-me"><i class="fa fa-copy"></i></a>
<a href="#"
data-value="@Model.address"
class="copy-me"><i class="fa fa-copy"></i></a>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -108,3 +108,20 @@
...
@@ -108,3 +108,20 @@
</div>
</div>
</div>
</div>
</section>
</section>
@section Scripts
{
<script type="text/javascript">
$(document).ready(function()
{
$(".copy-me").click(function()
{
var tempField = document.createElement("textarea");
tempField.value = $(this).attr("data-value");
$("body").parent().append(tempField);
tempField.select();
document.execCommand("copy");
tempField.remove();
})
});
</script>
}
\ No newline at end of file
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