|
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.4.554"> |
| 5 | +<meta name="generator" content="quarto-1.6.40"> |
6 | 6 |
|
7 | 7 | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> |
8 | 8 |
|
9 | 9 |
|
10 | | -<title>STEMcoding - Dates as data</title> |
| 10 | +<title>Dates as data – STEMcoding</title> |
11 | 11 | <style> |
12 | 12 | code{white-space: pre-wrap;} |
13 | 13 | span.smallcaps{font-variant: small-caps;} |
|
35 | 35 | <script src="../../site_libs/quarto-html/tippy.umd.min.js"></script> |
36 | 36 | <script src="../../site_libs/quarto-html/anchor.min.js"></script> |
37 | 37 | <link href="../../site_libs/quarto-html/tippy.css" rel="stylesheet"> |
38 | | -<link href="../../site_libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles"> |
| 38 | +<link href="../../site_libs/quarto-html/quarto-syntax-highlighting-549806ee2085284f45b00abea8c6df48.css" rel="stylesheet" id="quarto-text-highlighting-styles"> |
39 | 39 | <script src="../../site_libs/bootstrap/bootstrap.min.js"></script> |
40 | 40 | <link href="../../site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet"> |
41 | | -<link href="../../site_libs/bootstrap/bootstrap.min.css" rel="stylesheet" id="quarto-bootstrap" data-mode="light"> |
| 41 | +<link href="../../site_libs/bootstrap/bootstrap-3ed3a85e8781f68cd9162943f395acec.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light"> |
42 | 42 | <script id="quarto-search-options" type="application/json">{ |
43 | 43 | "location": "navbar", |
44 | 44 | "copy-button": false, |
|
83 | 83 | </a> |
84 | 84 | </div> |
85 | 85 | <div id="quarto-search" class="" title="Search"></div> |
86 | | - <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 | + <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(); }"> |
87 | 87 | <span class="navbar-toggler-icon"></span> |
88 | 88 | </button> |
89 | 89 | <div class="collapse navbar-collapse" id="navbarCollapse"> |
|
106 | 106 | </li> |
107 | 107 | </ul> |
108 | 108 | </div> <!-- /navcollapse --> |
109 | | - <div class="quarto-navbar-tools"> |
| 109 | + <div class="quarto-navbar-tools"> |
110 | 110 | <a href="https://www.youtube.com/@STEMcoding" title="" class="quarto-navigation-tool px-1" aria-label=""><i class="bi bi-youtube"></i></a> |
111 | 111 | <a href="https://discord.gg/bsWgqcqwCE" title="" class="quarto-navigation-tool px-1" aria-label=""><i class="bi bi-discord"></i></a> |
112 | 112 | </div> |
@@ -335,18 +335,7 @@ <h2 class="anchored" data-anchor-id="key-points">Key Points</h2> |
335 | 335 | } |
336 | 336 | return false; |
337 | 337 | } |
338 | | - const clipboard = new window.ClipboardJS('.code-copy-button', { |
339 | | - text: function(trigger) { |
340 | | - const codeEl = trigger.previousElementSibling.cloneNode(true); |
341 | | - for (const childEl of codeEl.children) { |
342 | | - if (isCodeAnnotation(childEl)) { |
343 | | - childEl.remove(); |
344 | | - } |
345 | | - } |
346 | | - return codeEl.innerText; |
347 | | - } |
348 | | - }); |
349 | | - clipboard.on('success', function(e) { |
| 338 | + const onCopySuccess = function(e) { |
350 | 339 | // button target |
351 | 340 | const button = e.trigger; |
352 | 341 | // don't keep focus |
@@ -378,15 +367,35 @@ <h2 class="anchored" data-anchor-id="key-points">Key Points</h2> |
378 | 367 | }, 1000); |
379 | 368 | // clear code selection |
380 | 369 | e.clearSelection(); |
| 370 | + } |
| 371 | + const getTextToCopy = function(trigger) { |
| 372 | + const codeEl = trigger.previousElementSibling.cloneNode(true); |
| 373 | + for (const childEl of codeEl.children) { |
| 374 | + if (isCodeAnnotation(childEl)) { |
| 375 | + childEl.remove(); |
| 376 | + } |
| 377 | + } |
| 378 | + return codeEl.innerText; |
| 379 | + } |
| 380 | + const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', { |
| 381 | + text: getTextToCopy |
381 | 382 | }); |
| 383 | + clipboard.on('success', onCopySuccess); |
| 384 | + if (window.document.getElementById('quarto-embedded-source-code-modal')) { |
| 385 | + const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', { |
| 386 | + text: getTextToCopy, |
| 387 | + container: window.document.getElementById('quarto-embedded-source-code-modal') |
| 388 | + }); |
| 389 | + clipboardModal.on('success', onCopySuccess); |
| 390 | + } |
382 | 391 | var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//); |
383 | 392 | var mailtoRegex = new RegExp(/^mailto:/); |
384 | 393 | var filterRegex = new RegExp('/' + window.location.host + '/'); |
385 | 394 | var isInternal = (href) => { |
386 | 395 | return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href); |
387 | 396 | } |
388 | 397 | // Inspect non-navigation links and adorn them if external |
389 | | - 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)'); |
| 398 | + 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)'); |
390 | 399 | for (var i=0; i<links.length; i++) { |
391 | 400 | const link = links[i]; |
392 | 401 | if (!isInternal(link.href)) { |
@@ -483,7 +492,6 @@ <h2 class="anchored" data-anchor-id="key-points">Key Points</h2> |
483 | 492 | if (window.Quarto?.typesetMath) { |
484 | 493 | window.Quarto.typesetMath(note); |
485 | 494 | } |
486 | | - // TODO in 1.5, we should make sure this works without a callout special case |
487 | 495 | if (note.classList.contains("callout")) { |
488 | 496 | return note.outerHTML; |
489 | 497 | } else { |
|
0 commit comments