INNER CODE UNIT · JavaScript

closeToggle

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

            const closeToggle = () => {
              if (tocShowing) {
                toggleContainer.classList.remove("expanded");
                toggleContents.style.height = "0px";
                tocShowing = false;
              }
            };

            // Get rid of any expanded toggle if the user scrolls
            window.document.addEventListener(
              "scroll",
              throttle(() => {
                closeToggle();
              }, 50)
            );

            // Handle positioning of the toggle
            window.addEventListener(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…