Sha256: db6c3ca8210f3962de3b1c8c83e0d72e5ac16d18d9981c6c5be38213849dbcd4
Contents?: true
Size: 523 Bytes
Versions: 15
Compression:
Stored size: 523 Bytes
Contents
// Replace all occurences of "--" (double hyphens) with "—" (long-em dash) function boldFont() { function replaceFont() { var headingArray = document.querySelectorAll('h3.hero-slider__slider--slide-heading'); headingArray.forEach(function(element) { element.innerHTML = element.innerHTML.replace(/\*\*POWER\*\*/g, '<span class="typography__power-text">POWER</span>'); }); } document.querySelectorAll('h3.hero-slider__slider--slide-heading') ? replaceFont() : null; } module.exports = boldFont;
Version data entries
15 entries across 15 versions & 1 rubygems