Untitled
unknown
plain_text
3 years ago
460 B
10
Indexable
function toggleContent() {
const content = document.getElementById("content");
const icon = document.getElementById("icon");
if (content.style.display === "none") {
content.style.display = "block";
icon.classList.remove("fa-chevron-right");
icon.classList.add("fa-chevron-down");
} else {
content.style.display = "none";
icon.classList.remove("fa-chevron-down");
icon.classList.add("fa-chevron-right");
}
}
Editor is loading...