diff --git a/assets/js/custom.js b/assets/js/custom.js new file mode 100644 index 0000000..38a0211 --- /dev/null +++ b/assets/js/custom.js @@ -0,0 +1,10 @@ +function removeEmptyParagraphs() { + const paragraphs = document.querySelectorAll('p'); + paragraphs.forEach(paragraph => { + if (!paragraph.textContent.trim() && !paragraph.querySelector('i')) { + paragraph.remove(); + } + }); +} + +removeEmptyParagraphs(); \ No newline at end of file