Skip to content

Commit

Permalink
Removing polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
josherrickson committed Jun 26, 2024
1 parent 688f3b2 commit d194276
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 68 deletions.
67 changes: 33 additions & 34 deletions docs/03-data-management.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
ul.task-list{list-style: none;}
ul.task-list li input[type="checkbox"] {
width: 0.8em;
margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */
margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */
vertical-align: middle;
}
/* CSS for syntax highlighting */
Expand Down Expand Up @@ -105,7 +105,6 @@
}
}</script>

<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js" type="text/javascript"></script>

<script type="text/javascript">
Expand Down Expand Up @@ -147,7 +146,7 @@
<i class="bi bi-layout-text-sidebar-reverse"></i>
</button>
<nav class="quarto-page-breadcrumbs" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="./03-data-management.html"><span class="chapter-number">3</span>&nbsp; <span class="chapter-title">Data Management</span></a></li></ol></nav>
<a class="flex-grow-1" role="button" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
<a class="flex-grow-1" role="button" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
</a>
<button type="button" class="btn quarto-search-button" aria-label="" onclick="window.quartoOpenSearch();">
<i class="bi bi-search"></i>
Expand All @@ -161,7 +160,7 @@
<nav id="quarto-sidebar" class="sidebar collapse collapse-horizontal quarto-sidebar-collapse-item sidebar-navigation floating overflow-auto">
<div class="pt-lg-2 mt-2 text-left sidebar-header">
<div class="sidebar-title mb-0 py-0">
<a href="./">Introduction to Stata</a>
<a href="./">Introduction to Stata</a>
<div class="sidebar-tools-main">
<a href="" class="quarto-color-scheme-toggle quarto-navigation-tool px-1" onclick="window.quartoToggleColorScheme(); return false;" title="Toggle dark mode"><i class="bi"></i></a>
</div>
Expand All @@ -172,46 +171,46 @@
<div id="quarto-search" class="" title="Search"></div>
</div>
</div>
<div class="sidebar-menu-container">
<div class="sidebar-menu-container">
<ul class="list-unstyled mt-1">
<li class="sidebar-item">
<div class="sidebar-item-container">
<div class="sidebar-item-container">
<a href="./index.html" class="sidebar-item-text sidebar-link">
<span class="menu-text">Preface</span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<div class="sidebar-item-container">
<a href="./01-the-basics-of-stata.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">1</span>&nbsp; <span class="chapter-title">The Basics of Stata</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<div class="sidebar-item-container">
<a href="./02-working-with-data-sets.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">2</span>&nbsp; <span class="chapter-title">Working with Data Sets</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<div class="sidebar-item-container">
<a href="./03-data-management.html" class="sidebar-item-text sidebar-link active">
<span class="menu-text"><span class="chapter-number">3</span>&nbsp; <span class="chapter-title">Data Management</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<div class="sidebar-item-container">
<a href="./04-data-manipulation.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">4</span>&nbsp; <span class="chapter-title">Data Manipulation</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<div class="sidebar-item-container">
<a href="./05-programming.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">5</span>&nbsp; <span class="chapter-title">Programming &amp; Advanced Features</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<div class="sidebar-item-container">
<a href="./appendix.html" class="sidebar-item-text sidebar-link">
<span class="menu-text">Appendix</span></a>
</div>
Expand All @@ -224,7 +223,7 @@
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
<nav id="TOC" role="doc-toc" class="toc-active">
<h2 id="toc-title">Table of contents</h2>

<ul>
<li><a href="#referring-to-variables" id="toc-referring-to-variables" class="nav-link active" data-scroll-target="#referring-to-variables"><span class="header-section-number">3.1</span> Referring to variables</a></li>
<li><a href="#describing-the-data" id="toc-describing-the-data" class="nav-link" data-scroll-target="#describing-the-data"><span class="header-section-number">3.2</span> Describing the data</a></li>
Expand Down Expand Up @@ -258,11 +257,11 @@ <h1 class="title"><span class="chapter-number">3</span>&nbsp; <span class="chapt

<div class="quarto-title-meta">




</div>



</header>
Expand Down Expand Up @@ -855,7 +854,7 @@ <h2 data-number="3.9" class="anchored" data-anchor-id="exercise-4"><span class="
toggleBodyColorMode(bsSheetEl);
}
}
toggleBodyColorPrimary();
toggleBodyColorPrimary();
const disableStylesheet = (stylesheets) => {
for (let i=0; i < stylesheets.length; i++) {
const stylesheet = stylesheets[i];
Expand Down Expand Up @@ -928,7 +927,7 @@ <h2 data-number="3.9" class="anchored" data-anchor-id="exercise-4"><span class="
const toggle = toggles[i];
if (toggle) {
if (alternate) {
toggle.classList.add("alternate");
toggle.classList.add("alternate");
} else {
toggle.classList.remove("alternate");
}
Expand All @@ -942,13 +941,13 @@ <h2 data-number="3.9" class="anchored" data-anchor-id="exercise-4"><span class="
setTimeout(() => {
window.scrollTo(0, 0);
manageTransitions("body", true);
}, 40);
}, 40);
}
}
const isFileUrl = () => {
const isFileUrl = () => {
return window.location.protocol === 'file:';
}
const hasAlternateSentinel = () => {
const hasAlternateSentinel = () => {
let styleSentinel = getColorSchemeSentinel();
if (styleSentinel !== null) {
return styleSentinel === "alternate";
Expand Down Expand Up @@ -976,7 +975,7 @@ <h2 data-number="3.9" class="anchored" data-anchor-id="exercise-4"><span class="
let localAlternateSentinel = darkModeDefault ? 'alternate' : 'default';
// Dark / light mode switch
window.quartoToggleColorScheme = () => {
// Read the current dark / light value
// Read the current dark / light value
let toAlternate = !hasAlternateSentinel();
toggleColorMode(toAlternate);
setStyleSentinel(toAlternate);
Expand Down Expand Up @@ -1009,7 +1008,7 @@ <h2 data-number="3.9" class="anchored" data-anchor-id="exercise-4"><span class="
anchorJS.add('.anchored');
const isCodeAnnotation = (el) => {
for (const clz of el.classList) {
if (clz.startsWith('code-annotation-')) {
if (clz.startsWith('code-annotation-')) {
return true;
}
}
Expand Down Expand Up @@ -1040,11 +1039,11 @@ <h2 data-number="3.9" class="anchored" data-anchor-id="exercise-4"><span class="
button.setAttribute("data-bs-toggle", "tooltip");
button.setAttribute("data-bs-placement", "left");
button.setAttribute("data-bs-title", "Copied!");
tooltip = new bootstrap.Tooltip(button,
{ trigger: "manual",
tooltip = new bootstrap.Tooltip(button,
{ trigger: "manual",
customClass: "code-copy-button-tooltip",
offset: [0, -8]});
tooltip.show();
tooltip.show();
}
setTimeout(function() {
if (tooltip) {
Expand Down Expand Up @@ -1082,7 +1081,7 @@ <h2 data-number="3.9" class="anchored" data-anchor-id="exercise-4"><span class="
if (onUntriggerFn) {
config.onUntrigger = onUntriggerFn;
}
window.tippy(el, config);
window.tippy(el, config);
}
const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]');
for (var i=0; i<noterefs.length; i++) {
Expand Down Expand Up @@ -1154,7 +1153,7 @@ <h2 data-number="3.9" class="anchored" data-anchor-id="exercise-4"><span class="
tippyHover(xref, undefined, function(instance) {
instance.disable();
let url = xref.getAttribute('href');
let hash = undefined;
let hash = undefined;
if (url.startsWith('#')) {
hash = url;
} else {
Expand Down Expand Up @@ -1182,7 +1181,7 @@ <h2 data-number="3.9" class="anchored" data-anchor-id="exercise-4"><span class="
if (note !== null) {
const html = processXRef(id, note);
instance.setContent(html);
}
}
}).finally(() => {
instance.enable();
instance.show();
Expand All @@ -1206,7 +1205,7 @@ <h2 data-number="3.9" class="anchored" data-anchor-id="exercise-4"><span class="
}
const html = processXRef(null, note);
instance.setContent(html);
}
}
}).finally(() => {
instance.enable();
instance.show();
Expand Down Expand Up @@ -1246,7 +1245,7 @@ <h2 data-number="3.9" class="anchored" data-anchor-id="exercise-4"><span class="
height = bottom - top;
}
if (top !== null && height !== null && parent !== null) {
// cook up a div (if necessary) and position it
// cook up a div (if necessary) and position it
let div = window.document.getElementById("code-annotation-line-highlight");
if (div === null) {
div = window.document.createElement("div");
Expand Down Expand Up @@ -1371,7 +1370,7 @@ <h2 data-number="3.9" class="anchored" data-anchor-id="exercise-4"><span class="
<div class="nav-page nav-page-previous">
<a href="./02-working-with-data-sets.html" class="pagination-link aria-label=" &lt;span="" with="" data="" sets&lt;="" span&gt;"="">
<i class="bi bi-arrow-left-short"></i> <span class="nav-page-text"><span class="chapter-number">2</span>&nbsp; <span class="chapter-title">Working with Data Sets</span></span>
</a>
</a>
</div>
<div class="nav-page nav-page-next">
<a href="./04-data-manipulation.html" class="pagination-link" aria-label="<span class='chapter-number'>4</span>&nbsp; <span class='chapter-title'>Data Manipulation</span>">
Expand All @@ -1384,4 +1383,4 @@ <h2 data-number="3.9" class="anchored" data-anchor-id="exercise-4"><span class="



</body></html>
</body></html>
Loading

0 comments on commit d194276

Please sign in to comment.