added th text

This commit is contained in:
Burak Civan
2022-10-17 11:37:23 +03:00
parent 37c83d3c02
commit ffcc34b646
3 changed files with 14 additions and 6 deletions

View File

@ -360,7 +360,7 @@ if (navigator.userAgent.search("Firefox") >= 0) {
//margue animation for truncated text
document.querySelectorAll('[data-truncate]').forEach((truncate) => {
let truncateText = truncate.textContent.split(" ").join("");
let truncateText = truncate.innerText.split(" ").join("");
if (truncateText.length > 30) {
truncate.classList.add('truncate');