|
2 | 2 | <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head> |
3 | 3 |
|
4 | 4 | <meta charset="utf-8"> |
5 | | -<meta name="generator" content="quarto-1.5.57"> |
| 5 | +<meta name="generator" content="quarto-1.4.553"> |
6 | 6 |
|
7 | 7 | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> |
8 | 8 |
|
9 | 9 |
|
10 | | -<title>Hi, I’m Mitch. 👋 – Mitch's Website</title> |
| 10 | +<title>Mitch’s Website - Hi, I’m Mitch. 👋</title> |
11 | 11 | <style> |
12 | 12 | code{white-space: pre-wrap;} |
13 | 13 | span.smallcaps{font-variant: small-caps;} |
|
82 | 82 | </a> |
83 | 83 | </div> |
84 | 84 | <div id="quarto-search" class="" title="Search"></div> |
85 | | - <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(); }"> |
| 85 | + <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(); }"> |
86 | 86 | <span class="navbar-toggler-icon"></span> |
87 | 87 | </button> |
88 | 88 | <div class="collapse navbar-collapse" id="navbarCollapse"> |
|
103 | 103 | </li> |
104 | 104 | </ul> |
105 | 105 | </div> <!-- /navcollapse --> |
106 | | - <div class="quarto-navbar-tools"> |
| 106 | + <div class="quarto-navbar-tools"> |
107 | 107 | </div> |
108 | 108 | </div> <!-- /container-fluid --> |
109 | 109 | </nav> |
@@ -178,7 +178,18 @@ <h1 class="title">Hi, I’m Mitch. 👋</h1> |
178 | 178 | } |
179 | 179 | return false; |
180 | 180 | } |
181 | | - const onCopySuccess = function(e) { |
| 181 | + const clipboard = new window.ClipboardJS('.code-copy-button', { |
| 182 | + text: function(trigger) { |
| 183 | + const codeEl = trigger.previousElementSibling.cloneNode(true); |
| 184 | + for (const childEl of codeEl.children) { |
| 185 | + if (isCodeAnnotation(childEl)) { |
| 186 | + childEl.remove(); |
| 187 | + } |
| 188 | + } |
| 189 | + return codeEl.innerText; |
| 190 | + } |
| 191 | + }); |
| 192 | + clipboard.on('success', function(e) { |
182 | 193 | // button target |
183 | 194 | const button = e.trigger; |
184 | 195 | // don't keep focus |
@@ -210,37 +221,15 @@ <h1 class="title">Hi, I’m Mitch. 👋</h1> |
210 | 221 | }, 1000); |
211 | 222 | // clear code selection |
212 | 223 | e.clearSelection(); |
213 | | - } |
214 | | - const getTextToCopy = function(trigger) { |
215 | | - const codeEl = trigger.previousElementSibling.cloneNode(true); |
216 | | - for (const childEl of codeEl.children) { |
217 | | - if (isCodeAnnotation(childEl)) { |
218 | | - childEl.remove(); |
219 | | - } |
220 | | - } |
221 | | - return codeEl.innerText; |
222 | | - } |
223 | | - const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', { |
224 | | - text: getTextToCopy |
225 | 224 | }); |
226 | | - clipboard.on('success', onCopySuccess); |
227 | | - if (window.document.getElementById('quarto-embedded-source-code-modal')) { |
228 | | - // For code content inside modals, clipBoardJS needs to be initialized with a container option |
229 | | - // TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860) |
230 | | - const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', { |
231 | | - text: getTextToCopy, |
232 | | - container: window.document.getElementById('quarto-embedded-source-code-modal') |
233 | | - }); |
234 | | - clipboardModal.on('success', onCopySuccess); |
235 | | - } |
236 | 225 | var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//); |
237 | 226 | var mailtoRegex = new RegExp(/^mailto:/); |
238 | 227 | var filterRegex = new RegExp("https:\/\/mitchellharrison\.github\.io"); |
239 | 228 | var isInternal = (href) => { |
240 | 229 | return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href); |
241 | 230 | } |
242 | 231 | // Inspect non-navigation links and adorn them if external |
243 | | - 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)'); |
| 232 | + 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)'); |
244 | 233 | for (var i=0; i<links.length; i++) { |
245 | 234 | const link = links[i]; |
246 | 235 | if (!isInternal(link.href)) { |
|
0 commit comments