Build assets

This commit is contained in:
Jeremy Thomas
2017-10-10 10:31:10 +01:00
parent 465ad931e6
commit 89b63c7cc4
3 changed files with 69 additions and 900 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -116,6 +116,7 @@ document.addEventListener('DOMContentLoaded', function () {
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
=======
>>>>>>> Add show code
=======
@@ -132,6 +133,8 @@ document.addEventListener('DOMContentLoaded', function () {
>>>>>>> Improve snippet
=======
>>>>>>> Fix rebase
=======
>>>>>>> Build assets
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>';
@@ -139,6 +142,7 @@ document.addEventListener('DOMContentLoaded', function () {
} else if ($el.firstElementChild.scrollHeight > 480 && $el.firstElementChild.clientHeight <= 480) {
$el.insertAdjacentHTML('beforeend', expandEl);
<<<<<<< HEAD
<<<<<<< HEAD
=======
if ($el.firstElementChild.scrollHeight > 480 && $el.firstElementChild.clientHeight <= 480) {
$el.insertAdjacentHTML('beforeend', expandEl);
@@ -211,6 +215,8 @@ document.addEventListener('DOMContentLoaded', function () {
=======
>>>>>>> Fix rebase
>>>>>>> Fix rebase
=======
>>>>>>> Build assets
}
itemsProcessed++;
@@ -248,6 +254,7 @@ document.addEventListener('DOMContentLoaded', function () {
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
=======
>>>>>>> Improve snippet
=======
@@ -258,11 +265,14 @@ document.addEventListener('DOMContentLoaded', function () {
=======
>>>>>>> Improve snippet
>>>>>>> Improve snippet
=======
>>>>>>> Build assets
var $highlightShows = getAll('.highlight .bd-show');
$highlightShows.forEach(function ($el) {
$el.addEventListener('click', function () {
$el.parentNode.parentNode.classList.remove('bd-is-more-clipped');
<<<<<<< HEAD
=======
var $highlightShows = getAll('.bd-highlight-clipped .bd-show');
@@ -336,6 +346,8 @@ document.addEventListener('DOMContentLoaded', function () {
>>>>>>> Improve snippet
=======
>>>>>>> Fix rebase
=======
>>>>>>> Build assets
});
});
}