Go to Source to See Full Article
Author:
Tip Badminton News with Cryptocurrency
Donate Bitcoin to Badminton News
function copyBitcoinAddress() {
var copyText = document.getElementById(“bitcoinAddress”);
copyText.select();
document.execCommand(“Copy”);
alert(“Copied the Bitcoin Address: ” + copyText.value);
}
Donate Bitcoin Cash to Badminton News
function copyBitcoinCashAddress() {
var copyText = document.getElementById(“bitcoinCashAddress”);
copyText.select();
document.execCommand(“Copy”);
alert(“Copied the Bitcoin Cash Address: ” + copyText.value);
}
Donate Ethereum to Badminton News
function copyEthereumAddress() {
var copyText = document.getElementById(“ethereumAddress”);
copyText.select();
document.execCommand(“Copy”);
alert(“Copied the Ethereum Address: ” + copyText.value);
}
Donate Litecoin to Badminton News
function copyLitecoinAddress() {
var copyText = document.getElementById(“litecoinAddress”);
copyText.select();
document.execCommand(“Copy”);
alert(“Copied the Litecoin Address: ” + copyText.value);
}
Donate Monero to Badminton News
function copyMoneroAddress() {
var copyText = document.getElementById(“moneroAddress”);
copyText.select();
document.execCommand(“Copy”);
alert(“Copied the Monero Address: ” + copyText.value);
}
Donate ZCash to Badminton News
function copyZcashAddress() {
var copyText = document.getElementById(“zcashAddress”);
copyText.select();
document.execCommand(“Copy”);
alert(“Copied the ZCash Address: ” + copyText.value);
}
jQuery(‘.bm-button-copy’).css(‘display’,’inline’);
// Stop href=”#hashtarget” links jumping around the page
var hashLinks = document.querySelectorAll(“a[href^=’#’]”);
[].forEach.call(hashLinks, function (link) {
link.addEventListener(“click”, function (event) {
event.preventDefault();
history.pushState({}, “”, link.href);
history.pushState({}, “”, link.href);
history.back();
});
});