Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

added onclick function and cursor pointer #9

Merged
merged 1 commit into from
Oct 30, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
color: white;
padding: 5px;
min-height: 30px;
cursor: pointer;
}
</style>
</head>
Expand Down Expand Up @@ -115,6 +116,16 @@ <h2 class="ui teal image header">
crossorigin="anonymous"></script>
<script src="./js/form.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script>
$('.hexData').on("click", function() {
var inputEle = $("<input />")
.appendTo("body")
.val($('.hexData').text())
.select();
document.execCommand("copy");
inputEle.remove();
});
</script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-67526856-7"></script>
<script>
window.dataLayer = window.dataLayer || [];
Expand Down