[FAQ] Broken Expand All Button January 22, 2022, 01:52:57 am Since the last rewrite of the /faq page, the function "listExpansion()" used by the Expand button is no longer in /faq/faq.min.js.Here is a quick-and-dirty implementation of the old functionality:Code: [Select]window.listExpansion = function() { var c = document.getElementById("expand"); var b = document.getElementsByClassName("toggleAnswer"); for (var i = 0; i < b.length; i++) { 'Expand' === c.innerHTML.trim() ? b.style.display = 'block' : b.style.display = 'none'; } c.innerHTML.trim() == "Expand" ? c.innerHTML = "Collapse" : c.innerHTML = "Expand";}For toggling, replace the line in the for loop with this:Code: [Select]'block' === b.style.display ? b.style.display = 'none' : b.style.display = 'block';
Re: [FAQ] Broken Expand All Button Reply #1 – January 22, 2022, 01:53:09 am Yea, I noticed it late last night too. I will have it fixed soon :-) thanks!