forked from rDrama/rDrama
same as last commit
parent
aad0784334
commit
5b26941c5c
|
@ -273,18 +273,19 @@ function changename(s1,s2) {
|
||||||
document.getElementById(s1).innerHTML = escapeHTML(filename.slice(0, -2));
|
document.getElementById(s1).innerHTML = escapeHTML(filename.slice(0, -2));
|
||||||
}
|
}
|
||||||
|
|
||||||
function showmore() {
|
function showmore(t) {
|
||||||
const btn = this.event.target
|
const div = t.parentElement.nextElementSibling
|
||||||
const div = btn.parentElement.nextElementSibling
|
|
||||||
div.classList.toggle('d-none')
|
div.classList.toggle('d-none')
|
||||||
if (div.classList.contains('d-none'))
|
if (div.classList.contains('d-none'))
|
||||||
btn.innerHTML = 'SHOW MORE'
|
t.innerHTML = 'SHOW MORE'
|
||||||
else
|
else
|
||||||
btn.innerHTML = 'SHOW LESS'
|
t.innerHTML = 'SHOW LESS'
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const element of document.getElementsByClassName('showmore')) {
|
for (const element of document.getElementsByClassName('showmore')) {
|
||||||
element.onclick = showmore;
|
element.onclick = () => {
|
||||||
|
showmore(element)
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function formatDate(d) {
|
function formatDate(d) {
|
||||||
|
|
Loading…
Reference in New Issue