|
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.1.251"> |
| 5 | +<meta name="generator" content="quarto-1.0.8"> |
6 | 6 |
|
7 | 7 | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
8 | 8 |
|
|
11 | 11 | <style>
|
12 | 12 | code{white-space: pre-wrap;}
|
13 | 13 | span.smallcaps{font-variant: small-caps;}
|
14 |
| -div.columns{display: flex; gap: min(4vw, 1.5em);} |
15 |
| -div.column{flex: auto; overflow-x: auto;} |
| 14 | +span.underline{text-decoration: underline;} |
| 15 | +div.column{display: inline-block; vertical-align: top; width: 50%;} |
16 | 16 | div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
|
17 | 17 | ul.task-list{list-style: none;}
|
18 |
| -ul.task-list li input[type="checkbox"] { |
19 |
| - width: 0.8em; |
20 |
| - margin: 0 0.8em 0.2em -1.6em; |
21 |
| - vertical-align: middle; |
22 |
| -} |
23 | 18 | pre > code.sourceCode { white-space: pre; position: relative; }
|
24 | 19 | pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
|
25 | 20 | pre > code.sourceCode > span:empty { height: 1.2em; }
|
|
58 | 53 | code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
|
59 | 54 | code span.at { color: #7d9029; } /* Attribute */
|
60 | 55 | code span.bn { color: #40a070; } /* BaseN */
|
61 |
| -code span.bu { color: #008000; } /* BuiltIn */ |
| 56 | +code span.bu { } /* BuiltIn */ |
62 | 57 | code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
|
63 | 58 | code span.ch { color: #4070a0; } /* Char */
|
64 | 59 | code span.cn { color: #880000; } /* Constant */
|
|
71 | 66 | code span.ex { } /* Extension */
|
72 | 67 | code span.fl { color: #40a070; } /* Float */
|
73 | 68 | code span.fu { color: #06287e; } /* Function */
|
74 |
| -code span.im { color: #008000; font-weight: bold; } /* Import */ |
| 69 | +code span.im { } /* Import */ |
75 | 70 | code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
|
76 | 71 | code span.kw { color: #007020; font-weight: bold; } /* Keyword */
|
77 | 72 | code span.op { color: #666666; } /* Operator */
|
|
95 | 90 | <link href="00-quarto-observable-basics_files/libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles">
|
96 | 91 | <script src="00-quarto-observable-basics_files/libs/bootstrap/bootstrap.min.js"></script>
|
97 | 92 | <link href="00-quarto-observable-basics_files/libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
|
98 |
| -<link href="00-quarto-observable-basics_files/libs/bootstrap/bootstrap.min.css" rel="stylesheet" id="quarto-bootstrap" data-mode="light"> |
| 93 | +<link href="00-quarto-observable-basics_files/libs/bootstrap/bootstrap.min.css" rel="stylesheet"> |
99 | 94 | <script type="module" src="00-quarto-observable-basics_files/libs/quarto-ojs/quarto-ojs-runtime.js"></script>
|
100 | 95 | <link href="00-quarto-observable-basics_files/libs/quarto-ojs/quarto-ojs.css" rel="stylesheet">
|
101 | 96 | <script type="ojs-define">
|
|
113 | 108 |
|
114 | 109 | <div id="quarto-content" class="page-columns page-rows-contents page-layout-article">
|
115 | 110 | <div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
|
116 |
| - <nav id="TOC" role="doc-toc" class="toc-active"> |
| 111 | + <nav id="TOC" role="doc-toc"> |
117 | 112 | <h2 id="toc-title">TOC</h2>
|
118 | 113 |
|
119 | 114 | <ul>
|
@@ -164,8 +159,10 @@ <h1>Quarto Tests</h1>
|
164 | 159 | <section id="todos" class="level2">
|
165 | 160 | <h2 class="anchored" data-anchor-id="todos">TODOs</h2>
|
166 | 161 | <ul class="task-list">
|
167 |
| -<li><input type="checkbox" disabled=""><a href="https://observablehq.com/@observablehq/databases">Query Database</a></li> |
168 |
| -<li><input type="checkbox" disabled="">Document publishing to quartopub.com with <code>quarto publish quarto-pub <filename>.qmd</code></li> |
| 162 | +<li><input type="checkbox" disabled=""> |
| 163 | +<a href="https://observablehq.com/@observablehq/databases">Query Database</a></li> |
| 164 | +<li><input type="checkbox" disabled=""> |
| 165 | +Document publishing to quartopub.com with <code>quarto publish quarto-pub <filename>.qmd</code></li> |
169 | 166 | </ul>
|
170 | 167 | </section>
|
171 | 168 | <section id="syntax-sugar-bytes" class="level2">
|
@@ -294,7 +291,7 @@ <h2 class="anchored" data-anchor-id="ggplot">2 - ggplot</h2>
|
294 | 291 | <div class="quarto-figure quarto-figure-center">
|
295 | 292 | <figure class="figure">
|
296 | 293 | <p><img src="00-quarto-observable-basics_files/figure-html/unnamed-chunk-2-1.png" class="img-fluid figure-img" width="672"></p>
|
297 |
| -<p></p><figcaption class="figure-caption">Figure caption for this plot, 2022-09-20</figcaption><p></p> |
| 294 | +<p></p><figcaption aria-hidden="true" class="figure-caption">Figure caption for this plot, 2022-11-09</figcaption><p></p> |
298 | 295 | </figure>
|
299 | 296 | </div>
|
300 | 297 | </div>
|
@@ -563,32 +560,14 @@ <h1>Bonus: HTML & reactive CSS Style</h1>
|
563 | 560 | {"contents":[{"methodName":"interpret","cellName":"ojs-cell-1","inline":false,"source":"Object.entries(mtcarsJS)\n"},{"methodName":"interpret","cellName":"ojs-cell-2","inline":false,"source":"Inputs.table(transpose(mtcarsJS))\n"},{"methodName":"interpret","cellName":"ojs-cell-3","inline":false,"source":"viewof repo = Inputs.radio(\n [\n \"tidyverse/ggplot2\",\n \"sveltejs/kit\",\n \"sveltejs/svelte\"\n ], \n { label: labels[0], value: \"tidyverse/ggplot2\"}\n)\n"},{"methodName":"interpret","cellName":"ojs-cell-4","inline":false,"source":"d3 = require('d3')\ncontributors = await d3.json(\n \"https://api.github.com/repos/\" + repo + \"/stats/contributors\"\n)\ncommits = contributors.map(contributor => {\n const author = contributor.author;\n return {\n name: author.login,\n title: author.login,\n group: author.type,\n value: contributor.total\n }\n})\n"},{"methodName":"interpret","cellName":"ojs-cell-5","inline":false,"source":"Object.entries(commits)\n"},{"methodName":"interpret","cellName":"ojs-cell-6","inline":false,"source":"Inputs.table(commits, { sort: \"value\", reverse: true })\n"},{"methodName":"interpret","cellName":"ojs-cell-7","inline":false,"source":"import { chart } with { commits as data } \n from \"@d3/d3-bubble-chart\"\nchart\n"},{"methodName":"interpret","cellName":"ojs-cell-8","inline":false,"source":"import {x11colors} from \"@observablehq/input-select\"\n"},{"methodName":"interpret","cellName":"ojs-cell-9","inline":false,"source":"viewof color = Inputs.select(x11colors, {value: \"steelblue\", label: \"Favorite color\"})\n"},{"methodName":"interpret","cellName":"ojs-cell-10","inline":false,"source":"html`<div style=\"background: ${color}; width: 100%; height: 25px;\">`\n"},{"methodName":"interpretQuiet","source":"shinyInput('repo')"},{"methodName":"interpretQuiet","source":"shinyInput('color')"}]}
|
564 | 561 | </script>
|
565 | 562 | <script type="module">
|
566 |
| -window._ojs.paths.runtimeToDoc = "../../.."; |
567 |
| -window._ojs.paths.runtimeToRoot = "../../.."; |
| 563 | +window._ojs.paths.runtimeToDoc = "..\..\.."; |
| 564 | +window._ojs.paths.runtimeToRoot = "..\..\.."; |
568 | 565 | window._ojs.paths.docToRoot = "";
|
569 | 566 | window._ojs.selfContained = false;
|
570 | 567 | window._ojs.runtime.interpretFromScriptTags();
|
571 | 568 | </script>
|
572 | 569 | <script id="quarto-html-after-body" type="application/javascript">
|
573 | 570 | window.document.addEventListener("DOMContentLoaded", function (event) {
|
574 |
| - const toggleBodyColorMode = (bsSheetEl) => { |
575 |
| - const mode = bsSheetEl.getAttribute("data-mode"); |
576 |
| - const bodyEl = window.document.querySelector("body"); |
577 |
| - if (mode === "dark") { |
578 |
| - bodyEl.classList.add("quarto-dark"); |
579 |
| - bodyEl.classList.remove("quarto-light"); |
580 |
| - } else { |
581 |
| - bodyEl.classList.add("quarto-light"); |
582 |
| - bodyEl.classList.remove("quarto-dark"); |
583 |
| - } |
584 |
| - } |
585 |
| - const toggleBodyColorPrimary = () => { |
586 |
| - const bsSheetEl = window.document.querySelector("link#quarto-bootstrap"); |
587 |
| - if (bsSheetEl) { |
588 |
| - toggleBodyColorMode(bsSheetEl); |
589 |
| - } |
590 |
| - } |
591 |
| - toggleBodyColorPrimary(); |
592 | 571 | const icon = "";
|
593 | 572 | const anchorJS = new window.AnchorJS();
|
594 | 573 | anchorJS.options = {
|
@@ -638,8 +617,7 @@ <h1>Bonus: HTML & reactive CSS Style</h1>
|
638 | 617 | for (var i=0; i<noterefs.length; i++) {
|
639 | 618 | const ref = noterefs[i];
|
640 | 619 | tippyHover(ref, function() {
|
641 |
| - // use id or data attribute instead here |
642 |
| - let href = ref.getAttribute('data-footnote-href') || ref.getAttribute('href'); |
| 620 | + let href = ref.getAttribute('href'); |
643 | 621 | try { href = new URL(href).hash; } catch {}
|
644 | 622 | const id = href.replace(/^#\/?/, "");
|
645 | 623 | const note = window.document.getElementById(id);
|
|
0 commit comments