Skip to content

Commit 9dd67e3

Browse files
committed
Fix file downloads, fix rendering issues
1 parent c25dbc1 commit 9dd67e3

File tree

243 files changed

+437
-565
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

243 files changed

+437
-565
lines changed

_freeze/class3/execute-results/html.json

Lines changed: 3 additions & 5 deletions
Large diffs are not rendered by default.
-43.2 KB
-50.3 KB
-32.6 KB
-46.7 KB
-54.3 KB
-39.9 KB
-27.6 KB
-35.8 KB
-30.4 KB
-31.6 KB
-39.6 KB
-72.8 KB
-33.5 KB
-26.3 KB
-59.1 KB
-57.9 KB
-65.1 KB
-23.3 KB
-23.3 KB
-27.3 KB

_freeze/class5/execute-results/html.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

_freeze/class6/execute-results/html.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

_freeze/class7/execute-results/html.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

class3.qmd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ format:
1010
For this lesson, we will be using a .bed file of genetic variants from <https://marianattestad.com/blog>. We will need to read in this data using the `read.table()` function, then rename the columns with the `name()` function:
1111

1212
```{r}
13-
variants <- read.table("data/DataVizDay1-files/variants_from_assembly.bed", sep="\t", quote='', stringsAsFactors=TRUE,header=FALSE)
13+
# Specify the URL of the dataset
14+
url <- "https://raw.githubusercontent.com/How-to-Learn-to-Code/Rclass-DataScience/main/data/DataVizDay1-files/variants_from_assembly.bed"
15+
16+
variants <- read.table(url, sep="\t", quote='', stringsAsFactors=TRUE,header=FALSE)
1417
names(variants) <- c("chrom","start","stop","name","size","strand","type","ref.dist","query.dist")
1518
1619
```

class3_cache/html/__packages

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ggplot2
Binary file not shown.
Binary file not shown.

class3_cache/html/unnamed-chunk-11_2e8e048a887216d8c4a8b73c18175b48.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

class3_cache/html/unnamed-chunk-12_3f39135fdcb9b5c635cc0fc27cc561b5.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

class3_cache/html/unnamed-chunk-13_b70f617985bfc8ff58fc57c61b825d6b.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

class3_cache/html/unnamed-chunk-14_8f30e5161cf9fa940093eb359a67fb5a.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

class3_cache/html/unnamed-chunk-15_0536502aedaf49d8c5533c1500a2bd30.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

class3_cache/html/unnamed-chunk-16_9b74c042cc4d71ac0ea049259cd8cca4.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

class3_cache/html/unnamed-chunk-18_cdea19b21008c3b11980749b053e1a2d.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

class3_cache/html/unnamed-chunk-19_115e864df76f7225fd937ce1b572c276.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

class3_cache/html/unnamed-chunk-20_7e07891c80432a40bcf67f2f2c0dbe6d.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

class3_cache/html/unnamed-chunk-2_373794ab771e85ceb0b18b8067ab09e8.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

class3_cache/html/unnamed-chunk-3_ffb24bf90c25b2c60d393051c955050b.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

class3_cache/html/unnamed-chunk-4_d5bfbe6c25c471ab9f5b4e30a0cfe72a.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

class3_cache/html/unnamed-chunk-5_c66c5167beb452f944c89c32a1f54a56.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

class3_cache/html/unnamed-chunk-6_83d8b46577acedab7cabb6da9cd2c15d.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

class3_cache/html/unnamed-chunk-7_ae0dd191c29d97b916c02a655c5b9922.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

class3_cache/html/unnamed-chunk-8_a0123f024b077213333438c226bff9c3.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

class3_cache/html/unnamed-chunk-9_39178886d5c429928b6bfb7999b55cea.rdb

Whitespace-only changes.
Binary file not shown.
22.3 KB
24.9 KB
29.7 KB
46.9 KB
16.2 KB
28.2 KB
13.1 KB
15.2 KB
29.6 KB
16.6 KB
28.6 KB
21.3 KB
36.7 KB
13.8 KB
30.2 KB
16.7 KB
22.6 KB
21.9 KB
25.1 KB
3.17 KB
3.17 KB
16.4 KB
Binary file not shown.

class5_cache/html/unnamed-chunk-6_5b2d4cecda7927fc7822f7ec14fab1d7.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

class6.qmd

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ author: "Brian Gural, Lorrie He, JP Flores"
55
format:
66
html:
77
toc: true
8-
execute:
9-
freeze: true
8+
109
---
1110

1211
```{r, echo=FALSE}
13-
options(digits = 3)
1412
renv::restore()
1513
library(tidyverse)
1614
library(ggplot2)
15+
options(digits = 3)
1716
```
1817

1918
## Objectives of Data Wrangling: Class 2
@@ -43,7 +42,7 @@ Take a moment to talk among yourselves about this/any ideas you had since last c
4342

4443
```{r}
4544
# Load the data. The sample IDs were stored as the first row, so lets make those the row.names
46-
cell_props <- read.table("data/wrangling-files/cellProportions.csv",
45+
cell_props <- read.table("https://raw.githubusercontent.com/How-to-Learn-to-Code/Rclass-DataScience/main/data/wrangling-files/cellProportions.csv",
4746
row.names = 1, header = TRUE, sep = ",")
4847
4948
head(cell_props)
@@ -70,7 +69,7 @@ Raw RNA-seq matrices should go up to 100,000s. So if you only see small numbers
7069
We also have the phenotypes for the samples in a separate file:
7170

7271
```{r}
73-
cell_phenos <- read.table("data/wrangling-files/cellPhenotypes.csv",
72+
cell_phenos <- read.table("https://raw.githubusercontent.com/How-to-Learn-to-Code/Rclass-DataScience/main/data/wrangling-files/cellPhenotypes.csv",
7473
row.names = 1,sep = ",",header = TRUE)
7574
7675
str(cell_phenos)

class6_cache/html/__packages

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
tidyverse
2+
ggplot2
3+
tibble
4+
tidyr
5+
readr
6+
purrr
7+
dplyr
8+
stringr
9+
forcats
10+
lubridate
Binary file not shown.

class6_cache/html/captain_planet_gif_752a9a22fe643672e8d2820f0a2c8d8f.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

class6_cache/html/pivot_gif_260bcc14a66bc21c040ff46865ba73d6.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

class6_cache/html/pivot_still_0e202b1cb6c56c0ee3683d84b67a57b4.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

class6_cache/html/ross_gif_87a1d39d2668a340046e7a229626015e.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

class6_cache/html/unnamed-chunk-11_fa8d22f1d04138688cb98cba83c34425.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

class6_cache/html/unnamed-chunk-12_95080683af2f361299310ca910f724f2.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

class6_cache/html/unnamed-chunk-13_187e9b6bfe04be68f5a2427903149a2e.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

class6_cache/html/unnamed-chunk-16_62da9ce4a4f1ac68fa0f0510e0ddc105.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

class6_cache/html/unnamed-chunk-1_7c05137a3c305d30cd242bbf451a46bd.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

class6_cache/html/unnamed-chunk-3_326603b97186d160900a88a48c1d7714.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

class6_cache/html/unnamed-chunk-5_469257b6a7ef0576b8b190be053b1760.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

class6_cache/html/unnamed-chunk-6_94d84c0bfcdd0329ac0f8237d2fb68de.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

class6_cache/html/unnamed-chunk-7_4cc1561bc7985265b87bdbc6a0081c6e.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
54.6 KB
60.1 KB
28.6 KB
75.3 KB

class7.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Running a Reproducible Analysis"
33
subtitle: "Project Management, Day 1"
4-
author: "Brian Gural"
4+
author: "Brian Gural, Justin Landis"
55
format:
66
html:
77
number-sections: true

class7_cache/html/__packages

Whitespace-only changes.
Binary file not shown.

class7_cache/html/charlie_gif_5bd3bdade9231ac9a37541620961e67d.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

class7_cache/html/dog_gif_0cc96add78e4394eab85d2cd5878c593.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

class7_cache/html/thumbs_up_gif_e369f272450349788bc6ed85bb50d458.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

class7_cache/html/unnamed-chunk-1_9186501b9628e3c18cac131954a5ea7f.rdb

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

class7_cache/html/unnamed-chunk-2_86477e94842869acef3f518d1366e576.rdb

Whitespace-only changes.
Binary file not shown.

docs/class0.html

Lines changed: 20 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
33

44
<meta charset="utf-8">
5-
<meta name="generator" content="quarto-1.5.38">
5+
<meta name="generator" content="quarto-1.4.553">
66

77
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
88

99

10-
<title>How To Learn to Code for Data Science in R – Welcome to How to Learn to Code!</title>
10+
<title>How To Learn to Code : R for Data Science - Welcome to How to Learn to Code!</title>
1111
<style>
1212
code{white-space: pre-wrap;}
1313
span.smallcaps{font-variant: small-caps;}
@@ -33,7 +33,7 @@
3333
}
3434
@media print {
3535
pre > code.sourceCode { white-space: pre-wrap; }
36-
pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; }
36+
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
3737
}
3838
pre.numberSource code
3939
{ counter-reset: source-line 0; }
@@ -117,7 +117,7 @@
117117
</a>
118118
</div>
119119
<div id="quarto-search" class="" title="Search"></div>
120-
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" role="menu" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
120+
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
121121
<span class="navbar-toggler-icon"></span>
122122
</button>
123123
<div class="collapse navbar-collapse" id="navbarCollapse">
@@ -129,17 +129,17 @@
129129
</li>
130130
</ul>
131131
</div> <!-- /navcollapse -->
132-
<div class="quarto-navbar-tools">
132+
<div class="quarto-navbar-tools">
133133
</div>
134134
</div> <!-- /container-fluid -->
135135
</nav>
136136
<nav class="quarto-secondary-nav">
137137
<div class="container-fluid d-flex">
138-
<button type="button" class="quarto-btn-toggle btn" data-bs-toggle="collapse" role="button" 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(); }">
138+
<button type="button" class="quarto-btn-toggle btn" 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(); }">
139139
<i class="bi bi-layout-text-sidebar-reverse"></i>
140140
</button>
141141
<nav class="quarto-page-breadcrumbs" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="./class0.html"><span class="chapter-title">Welcome to How to Learn to Code!</span></a></li></ol></nav>
142-
<a class="flex-grow-1" role="navigation" 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(); }">
142+
<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(); }">
143143
</a>
144144
</div>
145145
</nav>
@@ -465,7 +465,18 @@ <h2 class="anchored" data-anchor-id="bonus-installing-r-studio-on-your-personal-
465465
}
466466
return false;
467467
}
468-
const onCopySuccess = function(e) {
468+
const clipboard = new window.ClipboardJS('.code-copy-button', {
469+
text: function(trigger) {
470+
const codeEl = trigger.previousElementSibling.cloneNode(true);
471+
for (const childEl of codeEl.children) {
472+
if (isCodeAnnotation(childEl)) {
473+
childEl.remove();
474+
}
475+
}
476+
return codeEl.innerText;
477+
}
478+
});
479+
clipboard.on('success', function(e) {
469480
// button target
470481
const button = e.trigger;
471482
// don't keep focus
@@ -497,37 +508,15 @@ <h2 class="anchored" data-anchor-id="bonus-installing-r-studio-on-your-personal-
497508
}, 1000);
498509
// clear code selection
499510
e.clearSelection();
500-
}
501-
const getTextToCopy = function(trigger) {
502-
const codeEl = trigger.previousElementSibling.cloneNode(true);
503-
for (const childEl of codeEl.children) {
504-
if (isCodeAnnotation(childEl)) {
505-
childEl.remove();
506-
}
507-
}
508-
return codeEl.innerText;
509-
}
510-
const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', {
511-
text: getTextToCopy
512511
});
513-
clipboard.on('success', onCopySuccess);
514-
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
515-
// For code content inside modals, clipBoardJS needs to be initialized with a container option
516-
// TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860)
517-
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
518-
text: getTextToCopy,
519-
container: window.document.getElementById('quarto-embedded-source-code-modal')
520-
});
521-
clipboardModal.on('success', onCopySuccess);
522-
}
523512
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
524513
var mailtoRegex = new RegExp(/^mailto:/);
525514
var filterRegex = new RegExp("https:\/\/h2l2cR\.com");
526515
var isInternal = (href) => {
527516
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
528517
}
529518
// Inspect non-navigation links and adorn them if external
530-
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)');
519+
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool)');
531520
for (var i=0; i<links.length; i++) {
532521
const link = links[i];
533522
if (!isInternal(link.href)) {

docs/class1.html

Lines changed: 20 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
33

44
<meta charset="utf-8">
5-
<meta name="generator" content="quarto-1.5.38">
5+
<meta name="generator" content="quarto-1.4.553">
66

77
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
88

99
<meta name="author" content="Matthew Sutcliffe, Madeline Gillman, JP Flores">
1010

11-
<title>How To Learn to Code for Data Science in R – R Coding Basics</title>
11+
<title>How To Learn to Code : R for Data Science - R Coding Basics</title>
1212
<style>
1313
code{white-space: pre-wrap;}
1414
span.smallcaps{font-variant: small-caps;}
@@ -34,7 +34,7 @@
3434
}
3535
@media print {
3636
pre > code.sourceCode { white-space: pre-wrap; }
37-
pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; }
37+
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
3838
}
3939
pre.numberSource code
4040
{ counter-reset: source-line 0; }
@@ -118,7 +118,7 @@
118118
</a>
119119
</div>
120120
<div id="quarto-search" class="" title="Search"></div>
121-
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" role="menu" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
121+
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
122122
<span class="navbar-toggler-icon"></span>
123123
</button>
124124
<div class="collapse navbar-collapse" id="navbarCollapse">
@@ -130,17 +130,17 @@
130130
</li>
131131
</ul>
132132
</div> <!-- /navcollapse -->
133-
<div class="quarto-navbar-tools">
133+
<div class="quarto-navbar-tools">
134134
</div>
135135
</div> <!-- /container-fluid -->
136136
</nav>
137137
<nav class="quarto-secondary-nav">
138138
<div class="container-fluid d-flex">
139-
<button type="button" class="quarto-btn-toggle btn" data-bs-toggle="collapse" role="button" 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(); }">
139+
<button type="button" class="quarto-btn-toggle btn" 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(); }">
140140
<i class="bi bi-layout-text-sidebar-reverse"></i>
141141
</button>
142142
<nav class="quarto-page-breadcrumbs" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="./class1.html"><span class="chapter-title">R Coding Basics</span></a></li></ol></nav>
143-
<a class="flex-grow-1" role="navigation" 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(); }">
143+
<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(); }">
144144
</a>
145145
</div>
146146
</nav>
@@ -751,7 +751,18 @@ <h2 class="anchored" data-anchor-id="i-already-need-help">I already need help!</
751751
}
752752
return false;
753753
}
754-
const onCopySuccess = function(e) {
754+
const clipboard = new window.ClipboardJS('.code-copy-button', {
755+
text: function(trigger) {
756+
const codeEl = trigger.previousElementSibling.cloneNode(true);
757+
for (const childEl of codeEl.children) {
758+
if (isCodeAnnotation(childEl)) {
759+
childEl.remove();
760+
}
761+
}
762+
return codeEl.innerText;
763+
}
764+
});
765+
clipboard.on('success', function(e) {
755766
// button target
756767
const button = e.trigger;
757768
// don't keep focus
@@ -783,37 +794,15 @@ <h2 class="anchored" data-anchor-id="i-already-need-help">I already need help!</
783794
}, 1000);
784795
// clear code selection
785796
e.clearSelection();
786-
}
787-
const getTextToCopy = function(trigger) {
788-
const codeEl = trigger.previousElementSibling.cloneNode(true);
789-
for (const childEl of codeEl.children) {
790-
if (isCodeAnnotation(childEl)) {
791-
childEl.remove();
792-
}
793-
}
794-
return codeEl.innerText;
795-
}
796-
const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', {
797-
text: getTextToCopy
798797
});
799-
clipboard.on('success', onCopySuccess);
800-
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
801-
// For code content inside modals, clipBoardJS needs to be initialized with a container option
802-
// TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860)
803-
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
804-
text: getTextToCopy,
805-
container: window.document.getElementById('quarto-embedded-source-code-modal')
806-
});
807-
clipboardModal.on('success', onCopySuccess);
808-
}
809798
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
810799
var mailtoRegex = new RegExp(/^mailto:/);
811800
var filterRegex = new RegExp("https:\/\/h2l2cR\.com");
812801
var isInternal = (href) => {
813802
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
814803
}
815804
// Inspect non-navigation links and adorn them if external
816-
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)');
805+
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool)');
817806
for (var i=0; i<links.length; i++) {
818807
const link = links[i];
819808
if (!isInternal(link.href)) {

0 commit comments

Comments
 (0)