Added ethereum donate option

This commit is contained in:
Kasper Rynning-Tønnesen
2017-12-22 13:45:04 +01:00
parent 2c442b4e60
commit 956dfaef6b
3 changed files with 20 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

@@ -1041,6 +1041,17 @@ $(document).on("click", "#bitcoin-address", function(e) {
}
});
$(document).on("click", "#ethereum-address", function(e) {
var copyTextarea = document.querySelector('#ethereum-address');
copyTextarea.select();
var successful = document.execCommand('copy');
if(successful) {
Materialize.toast("Copied!", 2000, "green lighten");
} else {
Materialize.toast("Error copying..", 2000, "red lighten");
}
});
$(document).on("click", ".pagination-results a", function(e) {
e.preventDefault();
var that = $(this);

View File

@@ -7,8 +7,14 @@
<br>
<div class="row">
<div class="col s12 m6 center">
<img src="https://en.bitcoin.it/w/images/en/c/cb/BC_Logotype.png" alt="bitcoin-image" class="col s6 center"/>
<input type="text" id="bitcoin-address" readonly value="18DxBV9ij9t1eSLC3rTrugJbzGtMVPEyNB" />
<div class="col s12 center">
<img src="https://en.bitcoin.it/w/images/en/c/cb/BC_Logotype.png" alt="bitcoin-image" class="col s6 center"/>
<input type="text" id="bitcoin-address" readonly value="18DxBV9ij9t1eSLC3rTrugJbzGtMVPEyNB" />
</div>
<div class="col s12 center">
<img src="/assets/images/ethdonate.png" alt="ethereum-image" class="col s6 center"/>
<input type="text" id="ethereum-address" readonly value="0x4f867b619cbbc05b0e81d7a3fd9b1ae73b42098f" />
</div>
</div>
<div class="col s12 m6 center">
<img src="https://www.paypalobjects.com/webstatic/i/logo/rebrand/ppcom.png" alt="paypal-image" class="center-align" />
@@ -20,6 +26,7 @@
</a>
</form>
</div>
</div>
</div>
<div class="modal-footer">