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 c799b9f commit 4e2a98e
Showing 1 changed file with 32 additions and 33 deletions.
65 changes: 32 additions & 33 deletions docs/02_getting_started_with_r.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 @@ -98,7 +98,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>

</head>
Expand All @@ -113,7 +112,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="./02_getting_started_with_r.html"><span class="chapter-number">2</span>&nbsp; <span class="chapter-title">Getting Started with R</span></a></li></ol></nav>
<a class="flex-grow-1" role="button" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar,#quarto-sidebar-glass" 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,#quarto-sidebar-glass" 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 @@ -127,7 +126,7 @@
<nav id="quarto-sidebar" class="sidebar collapse collapse-horizontal 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 R</a>
<a href="./">Introduction to R</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 @@ -138,34 +137,34 @@
<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_r_environment.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">1</span>&nbsp; <span class="chapter-title">The R <em>Environment</em></span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<div class="sidebar-item-container">
<a href="./02_getting_started_with_r.html" class="sidebar-item-text sidebar-link active">
<span class="menu-text"><span class="chapter-number">2</span>&nbsp; <span class="chapter-title">Getting Started with R</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<div class="sidebar-item-container">
<a href="./03_data_in_r.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">3</span>&nbsp; <span class="chapter-title">Data in R</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<div class="sidebar-item-container">
<a href="./04_basic_data_processing.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">4</span>&nbsp; <span class="chapter-title">Basic data processing</span></span></a>
</div>
Expand All @@ -178,7 +177,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="#the-rstudio-interface" id="toc-the-rstudio-interface" class="nav-link active" data-scroll-target="#the-rstudio-interface"><span class="header-section-number">2.1</span> The RStudio interface</a></li>
<li><a href="#using-r-as-a-calculator" id="toc-using-r-as-a-calculator" class="nav-link" data-scroll-target="#using-r-as-a-calculator"><span class="header-section-number">2.2</span> Using R as a calculator</a></li>
Expand Down Expand Up @@ -212,11 +211,11 @@ <h1 class="title"><span class="chapter-number">2</span>&nbsp; <span class="chapt

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




</div>


</header>

Expand Down Expand Up @@ -498,7 +497,7 @@ <h2 data-number="2.4" class="anchored" data-anchor-id="using-functions"><span cl
<div class="cell">
<div class="sourceCode cell-code" id="cb66"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb66-1"><a href="#cb66-1" aria-hidden="true" tabindex="-1"></a><span class="fu">args</span>(round)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code>function (x, digits = 0, ...)
<pre><code>function (x, digits = 0, ...)
NULL</code></pre>
</div>
</div>
Expand Down Expand Up @@ -646,7 +645,7 @@ <h3 data-number="2.7.1" class="anchored" data-anchor-id="named-vectors"><span cl
<div class="sourceCode cell-code" id="cb84"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb84-1"><a href="#cb84-1" aria-hidden="true" tabindex="-1"></a>my_named_vec <span class="ot">&lt;-</span> <span class="fu">c</span>(<span class="at">tigers =</span> <span class="dv">2</span>, <span class="at">lions =</span> <span class="dv">5</span>)</span>
<span id="cb84-2"><a href="#cb84-2" aria-hidden="true" tabindex="-1"></a>my_named_vec</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code>tigers lions
<pre><code>tigers lions
2 5 </code></pre>
</div>
</div>
Expand Down Expand Up @@ -748,12 +747,12 @@ <h3 data-number="2.7.3" class="anchored" data-anchor-id="extracting-elements"><s
<div class="cell">
<div class="sourceCode cell-code" id="cb108"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb108-1"><a href="#cb108-1" aria-hidden="true" tabindex="-1"></a>my_named_vec</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code>tigers lions
<pre><code>tigers lions
2 5 </code></pre>
</div>
<div class="sourceCode cell-code" id="cb110"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb110-1"><a href="#cb110-1" aria-hidden="true" tabindex="-1"></a>my_named_vec[<span class="st">"lions"</span>]</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code>lions
<pre><code>lions
5 </code></pre>
</div>
</div>
Expand Down Expand Up @@ -1028,7 +1027,7 @@ <h2 data-number="2.10" class="anchored" data-anchor-id="exercise"><span class="h
toggleBodyColorMode(bsSheetEl);
}
}
toggleBodyColorPrimary();
toggleBodyColorPrimary();
const disableStylesheet = (stylesheets) => {
for (let i=0; i < stylesheets.length; i++) {
const stylesheet = stylesheets[i];
Expand Down Expand Up @@ -1074,7 +1073,7 @@ <h2 data-number="2.10" class="anchored" data-anchor-id="exercise"><span class="h
const toggle = toggles[i];
if (toggle) {
if (alternate) {
toggle.classList.add("alternate");
toggle.classList.add("alternate");
} else {
toggle.classList.remove("alternate");
}
Expand All @@ -1088,13 +1087,13 @@ <h2 data-number="2.10" class="anchored" data-anchor-id="exercise"><span class="h
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 All @@ -1121,7 +1120,7 @@ <h2 data-number="2.10" class="anchored" data-anchor-id="exercise"><span class="h
let localAlternateSentinel = '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 @@ -1153,7 +1152,7 @@ <h2 data-number="2.10" class="anchored" data-anchor-id="exercise"><span class="h
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 @@ -1184,11 +1183,11 @@ <h2 data-number="2.10" class="anchored" data-anchor-id="exercise"><span class="h
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 @@ -1218,7 +1217,7 @@ <h2 data-number="2.10" class="anchored" data-anchor-id="exercise"><span class="h
theme: 'quarto',
placement: 'bottom-start'
};
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 @@ -1263,7 +1262,7 @@ <h2 data-number="2.10" class="anchored" data-anchor-id="exercise"><span class="h
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 @@ -1361,7 +1360,7 @@ <h2 data-number="2.10" class="anchored" data-anchor-id="exercise"><span class="h
<div class="nav-page nav-page-previous">
<a href="./01_the_r_environment.html" class="pagination-link">
<i class="bi bi-arrow-left-short"></i> <span class="nav-page-text"><span class="chapter-number">1</span>&nbsp; <span class="chapter-title">The R <em>Environment</em></span></span>
</a>
</a>
</div>
<div class="nav-page nav-page-next">
<a href="./03_data_in_r.html" class="pagination-link">
Expand All @@ -1373,4 +1372,4 @@ <h2 data-number="2.10" class="anchored" data-anchor-id="exercise"><span class="h



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

0 comments on commit 4e2a98e

Please sign in to comment.