diff options
author | Mario <mario@mariovavti.com> | 2023-10-05 10:17:07 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-10-05 10:17:07 +0000 |
commit | 32f2de17d4faeb7b74b0f1b46c43800e3acedf36 (patch) | |
tree | 002328a2aad702ba3b7068992337f8aa2bb59997 /vendor/twbs/bootstrap/site/assets/js | |
parent | 600e8081a82f088ff513664379a1557ae5078193 (diff) | |
download | volse-hubzilla-32f2de17d4faeb7b74b0f1b46c43800e3acedf36.tar.gz volse-hubzilla-32f2de17d4faeb7b74b0f1b46c43800e3acedf36.tar.bz2 volse-hubzilla-32f2de17d4faeb7b74b0f1b46c43800e3acedf36.zip |
composer update bootstrap
Diffstat (limited to 'vendor/twbs/bootstrap/site/assets/js')
-rw-r--r-- | vendor/twbs/bootstrap/site/assets/js/code-examples.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/vendor/twbs/bootstrap/site/assets/js/code-examples.js b/vendor/twbs/bootstrap/site/assets/js/code-examples.js index e1f680e7e..3b03b17c4 100644 --- a/vendor/twbs/bootstrap/site/assets/js/code-examples.js +++ b/vendor/twbs/bootstrap/site/assets/js/code-examples.js @@ -20,18 +20,19 @@ const btnHtml = [ '<div class="bd-code-snippet">', - ' <div class="bd-clipboard">', - ' <button type="button" class="btn-clipboard">', - ' <svg class="bi" role="img" aria-label="Copy"><use xlink:href="#clipboard"/></svg>', - ' </button>', - ' </div>', + ' <div class="bd-clipboard">', + ' <button type="button" class="btn-clipboard">', + ' <svg class="bi" role="img" aria-label="Copy"><use xlink:href="#clipboard"/></svg>', + ' </button>', + ' </div>', '</div>' ].join('') // Wrap programmatically code blocks and add copy btn. document.querySelectorAll('.highlight') .forEach(element => { - if (!element.closest('.bd-example-snippet')) { // Ignore examples made be shortcode + // Ignore examples made by shortcode + if (!element.closest('.bd-example-snippet')) { element.insertAdjacentHTML('beforebegin', btnHtml) element.previousElementSibling.append(element) } |