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

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);