Update 1.html
This commit is contained in:
parent
3b3749fdbf
commit
f08b3c7bfe
12
1.html
12
1.html
@ -312,6 +312,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Hide notes section if empty or only contains <span></span>
|
||||||
|
let notesSection = document.querySelector('.notes-section');
|
||||||
|
if (notesSection) {
|
||||||
|
let notesContent = notesSection.querySelector('p');
|
||||||
|
if (notesContent) {
|
||||||
|
let content = notesContent.innerHTML.trim();
|
||||||
|
if (content === '' || content === '<span></span>') {
|
||||||
|
notesSection.style.display = 'none';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user