From d7d5b31e9352090fa598f50979d706d8e753ef9c Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Tue, 12 Jul 2022 12:10:59 +0200 Subject: Rerun benchmarks on desktop computer --- vignettes/mkin.html | 12 +++- vignettes/web_only/benchmarks.R | 112 +++++++++++++++++++++++++++++++++ vignettes/web_only/benchmarks.html | 51 +++++++++++---- vignettes/web_only/mkin_benchmarks.rda | Bin 1419 -> 1483 bytes 4 files changed, 162 insertions(+), 13 deletions(-) create mode 100644 vignettes/web_only/benchmarks.R (limited to 'vignettes') 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 = $('
'); @@ -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) { +