truncate html created only truncated text

This commit is contained in:
Burak Civan
2022-10-17 18:24:44 +03:00
parent d9218eff7f
commit f5f69139d5
2 changed files with 15 additions and 6 deletions

View File

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