| | |
| | | tocItems.forEach(function(item){ |
| | | pushClass(item, 'toc_item'); |
| | | pushClass(item.firstElementChild, 'toc_link'); |
| | | }) |
| | | }); |
| | | } |
| | | }); |
| | | |
| | |
| | | } |
| | | |
| | | const paragraphs = elems('p'); |
| | | paragraphs.forEach(function(p){ |
| | | const buttons = elems('.button', p); |
| | | if(buttons.length > 1) { |
| | | pushClass(p, 'button_grid'); |
| | | } |
| | | }); |
| | | if (paragraphs) { |
| | | paragraphs.forEach(function(p){ |
| | | const buttons = elems('.button', p); |
| | | if(buttons.length > 1) { |
| | | pushClass(p, 'button_grid'); |
| | | } |
| | | }); |
| | | } |
| | | })(); |
| | | |
| | | (function markExternalLinks(){ |
| | |
| | | copyText.innerText = 'Link Copied'; |
| | | if(!elem(`.${yanked}`, parent)) { |
| | | parent.appendChild(copyText); |
| | | setTimeout(function() { |
| | | setTimeout(function() { |
| | | parent.removeChild(copyText) |
| | | }, 2250); |
| | | } |
| | |
| | | } else { |
| | | deleteClass(toTop, active); |
| | | } |
| | | }) |
| | | }); |
| | | })(); |
| | | |
| | | } |