';
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);
}
});
});
Earlier this year, Oregon lawmakers amended Max’s Law, expanding the definition of “health professionals,” who can clear athletes with concussions to return to play. The new definition includes chiropractors, naturopaths, physical therapists and occupational therapists.
The chief executive of Providence Health & Services, Doug Koekkoek, argued for including language that clarified that “a clinician should not provide medical release after a suspected concussion if it is not within the providers scope of practice.”
Also, the Oregon Medical Association, Oregon Association of Orthopedic Surgeons, and Osteopathic Physicians and Surgeons of Oregon penned a joint statement declaring “it is important that a neutral party clears the student to play, rather than a person who is employed by the school or the athletes' team, as such a person may be subject to outside pressures.”
That argument led to the omission of school athletic trainers from the list of medical professionals qualified to allow concussed students to return to play.