diff --git a/index.html b/index.html
index 3b922d4..1dce9b1 100644
--- a/index.html
+++ b/index.html
@@ -37,6 +37,18 @@
$('#start_epoch').datepicker(opts);
$('#end_epoch').datepicker(opts);
+ $('#dataHex').click(function() {
+ copyToClipboard($(this).attr('id'));
+ });
+
+ $('#prepareProposal').click(function() {
+ copyToClipboard($(this).attr('id'));
+ });
+
+ $('#submitProposal').click(function() {
+ copyToClipboard($(this).attr('id'));
+ });
+
$('#formSubmit').click(function() {
var gov = new Bitcore.GovObject.Proposal();
@@ -60,6 +72,12 @@
});
});
+ function copyToClipboard(id)
+ {
+ document.getElementById(id).select();
+ document.execCommand('copy');
+ }
+