// JavaScript to toggle the display of the hidden content
document.getElementById(‘read-more-button’).onclick = function() {
var content = document.getElementById(‘wiki-dropdown-content’);
var button = document.getElementById(‘read-more-button’);

if (content.style.display === “none” || content.style.display === “”) {
content.style.display = “block”;
button.innerHTML = “Hide Wiki Content (Click Here) ⬆️”; // Change button text to ‘Less’
// Optional: Scroll down to the content when it appears
// Note: The scrollIntoView on the button itself may be enough
} else {
content.style.display = “none”;
button.innerHTML = “Show Wiki Content (Click Here) ⬇️”; // Change button text back to ‘More’
// Scroll back up to the button when content is hidden
button.scrollIntoView({ behavior: ‘smooth’ });
}
};