});
}
- new Clipboard('.bd-copy', {
- target: function(trigger) {
- return trigger.previousSibling;
- }
- });
+ setTimeout(() => {
+ new Clipboard('.bd-copy', {
+ target: trigger => {
+ return trigger.previousElementSibling.firstElementChild;
+ }
+ });
+ }, 100);
// Functions
var $parent = $el.parentNode;
if ($parent && $parent.classList.contains('bd-is-more')) {
- var showEl = '<button class="bd-show"><div><span class="icon"><i class="fa fa-code"></i></span> <strong>Show code</strong></div></button>';
+ var showEl = '<button class="bd-show"><div><span class="icon"><i class="fas fa-code"></i></span> <strong>Show code</strong></div></button>';
$el.insertAdjacentHTML('beforeend', showEl);
} else if ($el.firstElementChild.scrollHeight > 480 && $el.firstElementChild.clientHeight <= 480) {
$el.insertAdjacentHTML('beforeend', expandEl);
});
}
- new Clipboard('.bd-copy', {
- target: function target(trigger) {
- return trigger.previousSibling;
- }
- });
+ setTimeout(function () {
+ new Clipboard('.bd-copy', {
+ target: function target(trigger) {
+ return trigger.previousElementSibling.firstElementChild;
+ }
+ });
+ }, 100);
// Functions
if (fixedBottom) {
fixBottomEl.className = 'button is-success';
- fixBottomElIcon.className = 'fa fa-check-square-o';
+ fixBottomElIcon.className = 'far fa-check-square';
rootEl.classList.add('has-navbar-fixed-bottom');
navbarBottomEl.classList.remove('is-hidden');
} else {
fixBottomEl.className = 'button is-link';
- fixBottomElIcon.className = 'fa fa-square-o';
+ fixBottomElIcon.className = 'far fa-square';
rootEl.classList.remove('has-navbar-fixed-bottom');
navbarBottomEl.classList.add('is-hidden');
}