update
All checks were successful
Deploy Static Site / deploy (push) Successful in 6m7s

This commit is contained in:
2025-05-28 14:39:29 +04:00
parent 0449f954d8
commit 9bd0dbc92f
2 changed files with 38 additions and 18 deletions

View File

@ -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(

View File

@ -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(