Skip to content

Commit

Permalink
Fix bslib iframes
Browse files Browse the repository at this point in the history
  • Loading branch information
rundel committed Aug 12, 2024
1 parent 8d051b8 commit 9ba7aca
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions slides/03-Dynamic_UIs.html
Original file line number Diff line number Diff line change
Expand Up @@ -2145,7 +2145,7 @@ <h2>Your turn - Exercise 05</h2>
<p><em>Hint</em> - remember that anywhere that uses either <code>d</code> will now need to use <code>d()</code> instead.</p>
<div class="cell">
<div class="cell-output-display">
<div class="countdown" id="timer_23a4f38c" data-update-every="1" tabindex="0" style="right:0;bottom:0;">
<div class="countdown" id="timer_d6a996d8" data-update-every="1" tabindex="0" style="right:0;bottom:0;">
<div class="countdown-controls"><button class="countdown-bump-down">−</button><button class="countdown-bump-up">+</button></div>
<code class="countdown-time"><span class="countdown-digits minutes">12</span><span class="countdown-digits colon">:</span><span class="countdown-digits seconds">00</span></code>
</div>
Expand Down Expand Up @@ -2190,7 +2190,7 @@ <h2>Cards</h2>
<span id="cb5-9"><a href></a> )</span>
<span id="cb5-10"><a href></a>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div><div class="column">
<iframe src=".bslib_out/unnamed-chunk-6.html" width="100%" height="100%" data-external="1" scrolling="no">
<iframe src="bslib_out/unnamed-chunk-6.html" width="100%" height="100%" data-external="1" scrolling="no">
</iframe>
</div></div>
</section>
Expand All @@ -2211,7 +2211,7 @@ <h2>Styling cards</h2>
<span id="cb6-10"><a href></a> )</span>
<span id="cb6-11"><a href></a>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div><div class="column">
<iframe src=".bslib_out/unnamed-chunk-7.html" width="100%" height="100%" data-external="1" scrolling="no">
<iframe src="bslib_out/unnamed-chunk-7.html" width="100%" height="100%" data-external="1" scrolling="no">
</iframe>
</div></div>

Expand Down Expand Up @@ -2243,7 +2243,7 @@ <h2>Multiple card bodies</h2>
<span id="cb7-18"><a href></a> )</span>
<span id="cb7-19"><a href></a>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div><div class="column">
<iframe src=".bslib_out/unnamed-chunk-8.html" width="100%" height="100%" data-external="1" scrolling="no">
<iframe src="bslib_out/unnamed-chunk-8.html" width="100%" height="100%" data-external="1" scrolling="no">
</iframe>
</div></div>
</section>
Expand All @@ -2260,7 +2260,7 @@ <h2>Value boxes</h2>
<span id="cb8-6"><a href></a> <span class="fu">p</span>(<span class="st">&quot;The 1st detail&quot;</span>)</span>
<span id="cb8-7"><a href></a>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div><div class="column">
<iframe src=".bslib_out/unnamed-chunk-9.html" width="100%" height="100%" data-external="1" scrolling="no">
<iframe src="bslib_out/unnamed-chunk-9.html" width="100%" height="100%" data-external="1" scrolling="no">
</iframe>
</div></div>
<p>
Expand All @@ -2276,7 +2276,7 @@ <h2>Value boxes</h2>
<span id="cb9-7"><a href></a> <span class="fu">p</span>(<span class="st">&quot;The 3rd detail&quot;</span>)</span>
<span id="cb9-8"><a href></a>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div><div class="column">
<iframe src=".bslib_out/unnamed-chunk-10.html" width="100%" height="100%" data-external="1" scrolling="no">
<iframe src="bslib_out/unnamed-chunk-10.html" width="100%" height="100%" data-external="1" scrolling="no">
</iframe>
</div></div>
</section>
Expand Down
4 changes: 2 additions & 2 deletions slides/03-Dynamic_UIs.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ knitr::knit_engines$set(bslib = function(options) {
code = paste0(options$code, collapse = '\n')
anim = !is.null(options$anim) && isTRUE(options$anim)
html = whisker::whisker.render(readr::read_file(".bslib_out/bslib.tmpl"))
html = whisker::whisker.render(readr::read_file("bslib_out/bslib.tmpl"))
if (!dir.exists(".bslib_out")) {
dir.create(".bslib_out")
}
qmd_file = file.path(".bslib_out", paste0(options$label,".qmd"))
qmd_file = file.path("bslib_out", paste0(options$label,".qmd"))
readr::write_file(html, file=qmd_file)
quarto::quarto_render(qmd_file, quiet = TRUE)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 9ba7aca

Please sign in to comment.