|
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.5.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 - Activities Flowcharts</title> |
| 10 | +<title>STEMcoding – Activities Flowcharts</title> |
11 | 11 | <style> |
12 | 12 | code{white-space: pre-wrap;} |
13 | 13 | span.smallcaps{font-variant: small-caps;} |
|
87 | 87 | </a> |
88 | 88 | </div> |
89 | 89 | <div id="quarto-search" class="" title="Search"></div> |
90 | | - <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(); }"> |
| 90 | + <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(); }"> |
91 | 91 | <span class="navbar-toggler-icon"></span> |
92 | 92 | </button> |
93 | 93 | <div class="collapse navbar-collapse" id="navbarCollapse"> |
|
106 | 106 | </li> |
107 | 107 | </ul> |
108 | 108 | </div> <!-- /navcollapse --> |
109 | | - <div class="quarto-navbar-tools tools-wide"> |
| 109 | + <div class="quarto-navbar-tools tools-wide"> |
110 | 110 | <a href="https://github.com/stemcoding" title="" class="quarto-navigation-tool px-1" aria-label=""><i class="bi bi-github"></i></a> |
111 | 111 | <a href="https://www.youtube.com/@STEMcoding" title="" class="quarto-navigation-tool px-1" aria-label=""><i class="bi bi-youtube"></i></a> |
112 | 112 | <a href="https://discord.gg/bsWgqcqwCE" title="" class="quarto-navigation-tool px-1" aria-label=""><i class="bi bi-discord"></i></a> |
@@ -259,18 +259,7 @@ <h2 class="anchored" data-anchor-id="slingshot-with-gravity">Slingshot with Grav |
259 | 259 | } |
260 | 260 | return false; |
261 | 261 | } |
262 | | - const clipboard = new window.ClipboardJS('.code-copy-button', { |
263 | | - text: function(trigger) { |
264 | | - const codeEl = trigger.previousElementSibling.cloneNode(true); |
265 | | - for (const childEl of codeEl.children) { |
266 | | - if (isCodeAnnotation(childEl)) { |
267 | | - childEl.remove(); |
268 | | - } |
269 | | - } |
270 | | - return codeEl.innerText; |
271 | | - } |
272 | | - }); |
273 | | - clipboard.on('success', function(e) { |
| 262 | + const onCopySuccess = function(e) { |
274 | 263 | // button target |
275 | 264 | const button = e.trigger; |
276 | 265 | // don't keep focus |
@@ -302,15 +291,37 @@ <h2 class="anchored" data-anchor-id="slingshot-with-gravity">Slingshot with Grav |
302 | 291 | }, 1000); |
303 | 292 | // clear code selection |
304 | 293 | e.clearSelection(); |
| 294 | + } |
| 295 | + const getTextToCopy = function(trigger) { |
| 296 | + const codeEl = trigger.previousElementSibling.cloneNode(true); |
| 297 | + for (const childEl of codeEl.children) { |
| 298 | + if (isCodeAnnotation(childEl)) { |
| 299 | + childEl.remove(); |
| 300 | + } |
| 301 | + } |
| 302 | + return codeEl.innerText; |
| 303 | + } |
| 304 | + const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', { |
| 305 | + text: getTextToCopy |
305 | 306 | }); |
| 307 | + clipboard.on('success', onCopySuccess); |
| 308 | + if (window.document.getElementById('quarto-embedded-source-code-modal')) { |
| 309 | + // For code content inside modals, clipBoardJS needs to be initialized with a container option |
| 310 | + // TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860) |
| 311 | + const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', { |
| 312 | + text: getTextToCopy, |
| 313 | + container: window.document.getElementById('quarto-embedded-source-code-modal') |
| 314 | + }); |
| 315 | + clipboardModal.on('success', onCopySuccess); |
| 316 | + } |
306 | 317 | var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//); |
307 | 318 | var mailtoRegex = new RegExp(/^mailto:/); |
308 | 319 | var filterRegex = new RegExp('/' + window.location.host + '/'); |
309 | 320 | var isInternal = (href) => { |
310 | 321 | return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href); |
311 | 322 | } |
312 | 323 | // Inspect non-navigation links and adorn them if external |
313 | | - 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)'); |
| 324 | + 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)'); |
314 | 325 | for (var i=0; i<links.length; i++) { |
315 | 326 | const link = links[i]; |
316 | 327 | if (!isInternal(link.href)) { |
|
0 commit comments