';
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);
}
});
});
Northwest Indians are continuing to fight for the ability to sell tax-free cigarettes to non-Indians on tribal land, insisting such restrictions violate their nation's sovereignty, reports Krista Kapralos of High Country News.
Since 2001, Washington State has worked with tribes to negotiate the taxation of cigarettes to non-tribal members, often allowing the tribes to keep the revenue. But the idea has seen heavy backlash as far back as 1980, when a federal court judge first imposed the right to tax cigarettes sold to non-Indians and members of other tribes on the Colville Indian Reservation.
While some feel that outside taxes should not apply to reservation smoke shops -- saying it violates tribes' sovereign right to conduct business in their own way – dozens of Pacific Northwest tribe members have faced federal charges in recent years for the sale of untaxed tobacco.