Skip to content
document.addEventListener('DOMContentLoaded', function() {
var readMoreButton = document.getElementById('read-more-btn');
var longText = document.getElementById('long-text');
if (readMoreButton && longText) {
readMoreButton.addEventListener('click', function() {
longText.classList.toggle('visible');
this.innerText = longText.classList.contains('visible') ? 'Read Less' :
'Read More';
});
} else {
console.error('Read More button or long text container not found.');
}
});