Update get-gov-admin.js

This commit is contained in:
zandercymatics 2024-04-05 15:25:09 -06:00
parent e9332edc8b
commit 113b9b62bd
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -164,19 +164,16 @@ function openInNewTab(el, removeAttribute = false){
// Change the button text
nearestSpan = button.querySelector("span")
if (button.classList.contains('usa-button')) {
nearestSpan.innerText = "Copy email";
} else {
nearestSpan.innerText = "Copy";
}
nearestSpan.innerText = "Copied to clipboard"
setTimeout(function() {
// Change back to the copy icon
buttonIcon.setAttribute('xlink:href', currentHref);
usa-button__small
if (button.classList.)
nearestSpan.innerText = "Copy"
if (button.classList.contains('usa-button')) {
nearestSpan.innerText = "Copy email";
} else {
nearestSpan.innerText = "Copy";
}
}, 2000);
}