aboutsummaryrefslogtreecommitdiff
path: root/vignettes/mkin.html
diff options
context:
space:
mode:
Diffstat (limited to 'vignettes/mkin.html')
-rw-r--r--vignettes/mkin.html12
1 files changed, 10 insertions, 2 deletions
diff --git a/vignettes/mkin.html b/vignettes/mkin.html
index 1f35e9bd..0d5ed6fc 100644
--- a/vignettes/mkin.html
+++ b/vignettes/mkin.html
@@ -1303,6 +1303,8 @@ window.initializeCodeFolding = function(show) {
// select all R code blocks
var rCodeBlocks = $('pre.r, pre.python, pre.bash, pre.sql, pre.cpp, pre.stan, pre.julia, pre.foldable');
rCodeBlocks.each(function() {
+ // skip if the block has fold-none class
+ if ($(this).hasClass('fold-none')) return;
// create a collapsable div to wrap the code in
var div = $('<div class="collapse r-code-collapse"></div>');
@@ -1318,7 +1320,9 @@ window.initializeCodeFolding = function(show) {
showCodeButton.append(showCodeText);
showCodeButton
.attr('data-toggle', 'collapse')
+ .attr('data-bs-toggle', 'collapse') // BS5
.attr('data-target', '#' + id)
+ .attr('data-bs-target', '#' + id) // BS5
.attr('aria-expanded', showThis)
.attr('aria-controls', id);
@@ -1402,6 +1406,7 @@ if (window.hljs) {
+
<style type="text/css">
.main-container {
max-width: 940px;
@@ -1423,6 +1428,9 @@ button.code-folding-btn:focus {
summary {
display: list-item;
}
+details > summary > p:only-child {
+ display: inline;
+}
pre code {
padding: 0;
}
@@ -1580,7 +1588,7 @@ div.tocify {
<div id="header">
<div class="btn-group pull-right float-right">
-<button type="button" class="btn btn-default btn-xs btn-secondary btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span>Code</span> <span class="caret"></span></button>
+<button type="button" class="btn btn-default btn-xs btn-secondary btn-sm dropdown-toggle" data-toggle="dropdown" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span>Code</span> <span class="caret"></span></button>
<ul class="dropdown-menu dropdown-menu-right" style="min-width: 50px;">
<li><a id="rmd-show-all-code" href="#">Show All Code</a></li>
<li><a id="rmd-hide-all-code" href="#">Hide All Code</a></li>
@@ -1591,7 +1599,7 @@ div.tocify {
<h1 class="title toc-ignore">Introduction to mkin</h1>
<h4 class="author">Johannes Ranke</h4>
-<h4 class="date">Last change 15 February 2021 (rebuilt 2022-03-02)</h4>
+<h4 class="date">Last change 15 February 2021 (rebuilt 2022-07-12)</h4>
</div>

Contact - Imprint