';
document.querySelector('#copytext').value = textContent;
modal.showModal();
});
// Modal close functionality
const modal = document.querySelector('.republish-modal');
const closeBtn = document.querySelector('.republish-modal-close');
// Close button click
closeBtn.addEventListener('click', function() {
modal.close();
});
// Close on backdrop click
modal.addEventListener('click', function(e) {
if (e.target === modal) {
modal.close();
}
});
// Close on ESC key (this is usually built-in, but adding for safety)
modal.addEventListener('keydown', function(e) {
if (e.key === 'Escape') {
modal.close();
}
});
// Copy text button functionality
document.querySelector('.copy-text-button').addEventListener('click', async function() {
const textarea = document.querySelector('#copytext');
const text = textarea.value;
try {
// Try modern Clipboard API first
if (navigator.clipboard && window.isSecureContext) {
await navigator.clipboard.writeText(text);
this.textContent = 'Copied!';
} else {
// Fallback for older browsers
textarea.select();
document.execCommand('copy');
this.textContent = 'Copied!';
}
// Reset button text after 2 seconds
setTimeout(() => {
this.textContent = 'Copy text';
}, 2000);
} catch (err) {
console.error('Failed to copy text: ', err);
// Fallback to selection if copying fails
textarea.select();
this.textContent = 'Text selected';
setTimeout(() => {
this.textContent = 'Copy text';
}, 2000);
}
});
});
After nearly a month of meticulous signature counts, the results are in: Referendum 71, which could allow Washington state voters to overturn the "everything but marriage" law granting rights to gay couples, has qualified for the November ballot, reports the Everett Herald staff.
Despite efforts by supporters of gay rights to halt the process, the secretary of state's office said Monday that petitioners had obtained over 1,000 extra signatures, giving voters a chance to decide on whether an extension of the state's domestic partnership law has a place in Washington.
However, the lawsuit filed by Washington Families Standing Together has not gone unnoticed. The group's request for an injunction that would block the secretary of state from officially placing Ref. 71 on the ballot is expected to have an answer by Wednesday.
Meanwhile, Janet I. Tu of the Seattle Times reports that opponents and supporters of Ref. 71 are already gearing up for the next stage: two months of heavy lobbying. Said Anne Levinson, chairwoman of Washington Families Standing Together:
It's full speed ahead.