From 9bd0dbc92f0e481f2abcb2a05839c66de379292d Mon Sep 17 00:00:00 2001 From: koziavin Date: Wed, 28 May 2025 14:39:29 +0400 Subject: [PATCH] update --- business_solutions/main.js | 28 +++++++++++++++++++--------- platform/main.js | 28 +++++++++++++++++++--------- 2 files changed, 38 insertions(+), 18 deletions(-) diff --git a/business_solutions/main.js b/business_solutions/main.js index ed7854f..c9ea15c 100644 --- a/business_solutions/main.js +++ b/business_solutions/main.js @@ -322,15 +322,25 @@ function prepareContent() { }); } - // const spans = document.querySelectorAll('span'); - // if (spans.length) { - // spans.forEach(span => { - // if (span.innerHTML === ' ') { - // span.remove(); - // console.log(span.innerHTML); - // } - // }); - // } + const spans = document.querySelectorAll('span'); + if (spans.length) { + spans.forEach(span => { + if (span.innerHTML === ' ') { + span.remove(); + console.log(span.innerHTML); + } + }); + } + + const p = document.querySelectorAll('p'); + if (p) { + p.forEach(p => { + if (p.innerHTML === '') { + p.remove(); + console.log(p.innerHTML); + } + }); + } // example exapand const examplesToggle = document.querySelectorAll( diff --git a/platform/main.js b/platform/main.js index ed7854f..c9ea15c 100644 --- a/platform/main.js +++ b/platform/main.js @@ -322,15 +322,25 @@ function prepareContent() { }); } - // const spans = document.querySelectorAll('span'); - // if (spans.length) { - // spans.forEach(span => { - // if (span.innerHTML === ' ') { - // span.remove(); - // console.log(span.innerHTML); - // } - // }); - // } + const spans = document.querySelectorAll('span'); + if (spans.length) { + spans.forEach(span => { + if (span.innerHTML === ' ') { + span.remove(); + console.log(span.innerHTML); + } + }); + } + + const p = document.querySelectorAll('p'); + if (p) { + p.forEach(p => { + if (p.innerHTML === '') { + p.remove(); + console.log(p.innerHTML); + } + }); + } // example exapand const examplesToggle = document.querySelectorAll(