From 8411f0c651184f2bff7423bdcc8083197a93ee52 Mon Sep 17 00:00:00 2001 From: mmentovai Date: Wed, 4 Aug 2010 17:46:16 +0000 Subject: [PATCH] Update Python style guide with styleguide.xsl r51. --- pyguide.html | 260 +++++++++++++++++++++++---------------------------- 1 file changed, 115 insertions(+), 145 deletions(-) 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:

- + Toggle all summaries
@@ -132,12 +138,13 @@ -

Overview

Important Note

Displaying Hidden Details in this Guide

- + + link +
This style guide contains many details that are initially hidden from view. They are marked by the triangle icon, which you @@ -145,9 +152,6 @@ You should see "Hooray" appear below.