Lines Matching refs:section
54 function setSectionMenuMode(sectionId, section, menuModeEnabled, menuModeMask) { argument
64 if (section) {
65 hideSection(section); // To hide the maxiview.
129 function updateSimpleSection(id, section) { argument
133 if (shownSections & section) {
369 function SectionLayoutInfo(section) { argument
370 this.section = section;
371 this.header = section.querySelector('h2');
372 this.miniview = section.querySelector('.miniview');
373 this.maxiview = getSectionMaxiview(section);
374 this.expanded = this.maxiview && !section.classList.contains('collapsed');
375 this.fixedHeight = this.section.offsetHeight;
387 for (var i = 0, section; section = sections[i]; i++) {
388 result.push(new SectionLayoutInfo(section));
481 var section;
482 for (i = 0; section = sections[i]; i++) {
483 headerHeight += section.fixedHeight;
484 if (section.expanded) {
485 expandedSection = section;
493 for (; section = sections[i]; i++) {
494 footerHeight += section.fixedHeight;
537 for (i = 0, section; section = sections[i]; i++) {
538 section.section.style.top = y + 'px';
539 y += section.fixedHeight;
541 if (section.maxiview) {
542 if (section == expandedSection) {
543 section.maxiview.style.top = y + 'px';
549 var miniviewHeight = section.miniview.offsetHeight + miniviewFudge;
550 section.maxiview.style.top = y - miniviewHeight + 'px';
554 if (section.maxiview && section == expandedSection)
555 updateMask(section.maxiview, expandedSectionHeight);
557 if (section == expandedSection)
624 function getSectionElement(section) { argument
632 return sectionToElementMap[section];
635 function getSectionMaxiview(section) { argument
636 return $(section.id + '-maxiview');
639 function getSectionMiniview(section) { argument
640 return section.querySelector('.miniview');
644 function showSection(section) { argument
645 if (!(section & shownSections)) {
646 shownSections |= section;
647 var el = getSectionElement(section);
673 switch (section) {
688 function showOnlySection(section) { argument
690 if (p == section)
697 function hideSection(section) { argument
698 if (section & shownSections) {
699 shownSections &= ~section;
701 switch (section) {
712 var el = getSectionElement(section);
1112 function toggleSectionVisibilityAndAnimate(section) { argument
1113 if (!section)
1121 if (shownSections & Section[section]) {
1122 hideSection(Section[section]);
1124 showOnlySection(section);