Aevann 2023-05-16 05:05:19 +03:00
parent 60f58191b7
commit 9984fea7aa
1 changed files with 2 additions and 7 deletions

View File

@ -236,13 +236,8 @@ function showmore(t) {
if (!text) text = div.getElementsByClassName('showmore-text')[0]
if (!text) text = div.querySelector('div.d-none')
text.classList.add('showmore-text')
text.classList.toggle('d-none')
if (text.classList.contains('d-none'))
t.innerHTML = 'SHOW MORE'
else
t.innerHTML = 'SHOW LESS'
text.classList.remove('d-none')
t.remove()
}
function formatDate(d) {