forked from rDrama/rDrama
1
0
Fork 0

same as last commit

master
Aevann 2023-01-01 14:31:40 +02:00
parent aad0784334
commit 5b26941c5c
1 changed files with 7 additions and 6 deletions

View File

@ -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) {