diff --git a/pyguide.html b/pyguide.html index 46769a3..8048e30 100644 --- a/pyguide.html +++ b/pyguide.html @@ -8,10 +8,13 @@ function ShowHideByName(bodyName, buttonName) { var bodyElements; + var linkElement; if (document.getElementsByName) { bodyElements = document.getElementsByName(bodyName); + linkElement = document.getElementsByName('link-' + buttonName)[0]; } else { bodyElements = [document.getElementById(bodyName)]; + linkElement = document.getElementById('link-' + buttonName); } if (bodyElements.length != 1) { alert("ShowHideByName() got the wrong number of bodyElements: " + bodyElements.length); @@ -26,9 +29,11 @@ } if (bodyElement.style.display == "none" || bodyElement.style.display == "") { bodyElement.style.display = "inline"; + linkElement.style.display = "block"; buttonElement.innerHTML = '▽'; } else { bodyElement.style.display = "none"; + linkElement.style.display = "none"; buttonElement.innerHTML = '▶'; } } @@ -59,7 +64,8 @@ if (root[i].className == 'showhide_button') { root[i].innerHTML = newButton; } - if (root[i].className == 'stylepoint_body') { + if (root[i].className == 'stylepoint_body' || + root[i].className == 'link_button') { root[i].style.display = newState; } } @@ -109,11 +115,11 @@
Each style point has a summary for which additional information is available by toggling the accompanying arrow button that looks this way: - . + . You may toggle all summaries with the big arrow button: