Improve snippet

This commit is contained in:
Jeremy Thomas
2017-10-09 15:38:12 +01:00
parent 8d6a0a43dc
commit c4c3c32a83
5 changed files with 112 additions and 53 deletions

View File

@@ -143,19 +143,11 @@ document.addEventListener('DOMContentLoaded', () => {
});
});
<<<<<<< HEAD
const $highlightShows = getAll('.highlight .bd-show');
$highlightShows.forEach($el => {
$el.addEventListener('click', () => {
$el.parentNode.parentNode.classList.remove('bd-is-more-clipped');
=======
const $highlightShows = getAll('.bd-highlight-clipped .bd-show');
$highlightShows.forEach($el => {
$el.addEventListener('click', () => {
$el.parentNode.classList.remove('bd-is-clipped');
>>>>>>> Add show code
});
});
}