INNER CODE UNIT · JavaScript

sectionIndex

mikelove/bioc-refcard · README_files/libs/quarto-html/quarto.js:135

    let sectionIndex = -1;
    if (
      window.innerHeight + window.pageYOffset >=
      window.document.body.offsetHeight
    ) {
      sectionIndex = 0;
    } else {
      sectionIndex = [...sections].reverse().findIndex((section) => {
        if (section) {
          return window.pageYOffset >= section.offsetTop - sectionMargin;
        } else {
          return false;
        }
      });
    }
    if (sectionIndex > -1) {
      const current = sections.length - sectionIndex - 1;
      if (current !== currentActive) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…