diff --git a/docs/m101a-wsim-gldas-acquisition.html b/docs/m101a-wsim-gldas-acquisition.html index b2b4338..d880f2b 100644 --- a/docs/m101a-wsim-gldas-acquisition.html +++ b/docs/m101a-wsim-gldas-acquisition.html @@ -2,7 +2,7 @@ - + @@ -24,7 +24,7 @@ } pre > code.sourceCode { white-space: pre; position: relative; } -pre > code.sourceCode > span { display: inline-block; line-height: 1.25; } +pre > code.sourceCode > span { line-height: 1.25; } pre > code.sourceCode > span:empty { height: 1.2em; } .sourceCode { overflow: visible; } code.sourceCode > span { color: inherit; text-decoration: inherit; } @@ -60,6 +60,7 @@ div.csl-bib-body { } div.csl-entry { clear: both; +margin-bottom: 0em; } .hanging-indent div.csl-entry { margin-left:2em; @@ -165,6 +166,17 @@ } } + function dashboardOffset() { + const dashboardNavEl = window.document.getElementById( + "quarto-dashboard-header" + ); + if (dashboardNavEl !== null) { + return dashboardNavEl.clientHeight; + } else { + return 0; + } + } + function updateDocumentOffsetWithoutAnimation() { updateDocumentOffset(false); } @@ -172,7 +184,7 @@ function updateDocumentOffset(animated) { // set body offset const topOffset = headerOffset(); - const bodyOffset = topOffset + footerOffset(); + const bodyOffset = topOffset + footerOffset() + dashboardOffset(); const bodyEl = window.document.body; bodyEl.setAttribute("data-bs-offset", topOffset); bodyEl.style.paddingTop = topOffset + "px"; @@ -285,9 +297,9 @@ // Observe size changed for the header const headerEl = window.document.querySelector("header.fixed-top"); if (headerEl && window.ResizeObserver) { - const observer = new window.ResizeObserver( - updateDocumentOffsetWithoutAnimation - ); + const observer = new window.ResizeObserver(() => { + setTimeout(updateDocumentOffsetWithoutAnimation, 0); + }); observer.observe(headerEl, { attributes: true, childList: true, @@ -306,6 +318,7 @@ const links = window.document.querySelectorAll("a"); for (let i = 0; i < links.length; i++) { if (links[i].href) { + links[i].dataset.originalHref = links[i].href; links[i].href = links[i].href.replace(/\/index\.html/, "/"); } } @@ -313,7 +326,7 @@ // Fixup any sharing links that require urls // Append url to any sharing urls const sharingLinks = window.document.querySelectorAll( - "a.sidebar-tools-main-item" + "a.sidebar-tools-main-item, a.quarto-navigation-tool, a.quarto-navbar-tools, a.quarto-navbar-tools-item" ); for (let i = 0; i < sharingLinks.length; i++) { const sharingLink = sharingLinks[i]; @@ -371,8 +384,8 @@ * Licensed MIT © Zeno Rocha */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return n={686:function(t,e,n){"use strict";n.d(e,{default:function(){return b}});var e=n(279),i=n.n(e),e=n(370),u=n.n(e),e=n(817),r=n.n(e);function c(t){try{return document.execCommand(t)}catch(t){return}}var a=function(t){t=r()(t);return c("cut"),t};function o(t,e){var n,o,t=(n=t,o="rtl"===document.documentElement.getAttribute("dir"),(t=document.createElement("textarea")).style.fontSize="12pt",t.style.border="0",t.style.padding="0",t.style.margin="0",t.style.position="absolute",t.style[o?"right":"left"]="-9999px",o=window.pageYOffset||document.documentElement.scrollTop,t.style.top="".concat(o,"px"),t.setAttribute("readonly",""),t.value=n,t);return e.container.appendChild(t),e=r()(t),c("copy"),t.remove(),e}var f=function(t){var e=1 - @@ -1537,7 +1696,7 @@ // Find any conflicting margin elements and add margins to the // top to prevent overlap const marginChildren = window.document.querySelectorAll( - ".column-margin.column-container > * " + ".column-margin.column-container > *, .margin-caption, .aside" ); let lastBottom = 0; @@ -1546,25 +1705,14 @@ // clear the top margin so we recompute it marginChild.style.marginTop = null; const top = marginChild.getBoundingClientRect().top + window.scrollY; - console.log({ - childtop: marginChild.getBoundingClientRect().top, - scroll: window.scrollY, - top, - lastBottom, - }); if (top < lastBottom) { - const margin = lastBottom - top; + const marginChildStyle = window.getComputedStyle(marginChild); + const marginBottom = parseFloat(marginChildStyle["marginBottom"]); + const margin = lastBottom - top + marginBottom; marginChild.style.marginTop = `${margin}px`; } const styles = window.getComputedStyle(marginChild); const marginTop = parseFloat(styles["marginTop"]); - - console.log({ - top, - height: marginChild.getBoundingClientRect().height, - marginTop, - total: top + marginChild.getBoundingClientRect().height + marginTop, - }); lastBottom = top + marginChild.getBoundingClientRect().height + marginTop; } } @@ -1574,7 +1722,15 @@ // Recompute the position of margin elements anytime the body size changes if (window.ResizeObserver) { const resizeObserver = new window.ResizeObserver( - throttle(layoutMarginEls, 50) + throttle(() => { + layoutMarginEls(); + if ( + window.document.body.getBoundingClientRect().width < 990 && + isReaderMode() + ) { + quartoToggleReader(); + } + }, 50) ); resizeObserver.observe(window.document.body); } @@ -2430,10 +2586,10 @@ } - + + + + - + + diff --git a/docs/m101b-wsim-gldas-vis.html b/docs/m101b-wsim-gldas-vis.html index 3a3e0f8..db6c89f 100644 --- a/docs/m101b-wsim-gldas-vis.html +++ b/docs/m101b-wsim-gldas-vis.html @@ -2,13 +2,13 @@ - + - + SCHOOL Water Module - Water Security Indicator Model - Global Land Data Assimilation System (WSIM-GLDAS) Dataset Exploration and Visualizations - + + + + - - + +