forked from rDrama/rDrama
same as last commit
parent
96c732704d
commit
0240094853
|
@ -269,10 +269,10 @@ function showmore(t) {
|
||||||
if (!text) text = div.getElementsByClassName('d-none')[0]
|
if (!text) text = div.getElementsByClassName('d-none')[0]
|
||||||
if (!text) text = div.getElementsByClassName('showmore')[0]
|
if (!text) text = div.getElementsByClassName('showmore')[0]
|
||||||
|
|
||||||
div.classList.add('showmore')
|
text.classList.add('showmore')
|
||||||
|
|
||||||
div.classList.toggle('d-none')
|
text.classList.toggle('d-none')
|
||||||
if (div.classList.contains('d-none'))
|
if (text.classList.contains('d-none'))
|
||||||
t.innerHTML = 'SHOW MORE'
|
t.innerHTML = 'SHOW MORE'
|
||||||
else
|
else
|
||||||
t.innerHTML = 'SHOW LESS'
|
t.innerHTML = 'SHOW LESS'
|
||||||
|
|
Loading…
Reference in New Issue