mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 02:04:29 -07:00
Build assets
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -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
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user