Fix takenCourses buttons

This commit is contained in:
BernatBC 2023-07-03 17:34:49 +02:00
parent 9a759090cd
commit 4b34aa4fa3
2 changed files with 6 additions and 5 deletions

View file

@ -22,12 +22,9 @@ function toggleCourseVisibility (elem) {
}
window.addEventListener('DOMContentLoaded', () => {
const els = [
document.getElementById('show-more-btn'),
document.getElementById('show-less-btn')
]
const els = Array.from(document.getElementsByClassName('btn'));
els.filter((el) => el != null).forEach((el) =>
els.filter((el) => el != null && (el.id == 'show-more-btn' || el.id == 'show-less-btn')).forEach((el) =>
el.addEventListener('click', ({ target }) =>
toggleCourseVisibility(target)))
})

View file

@ -122,6 +122,10 @@
.taken-courses ul {
margin-bottom: 0;
}
.hidden {
display: none;
}
/*============ Education Alter Template =============*/
.education-alt .degree-info {