Fix takenCourses buttons (#772)
This commit is contained in:
parent
9a759090cd
commit
a128873f20
2 changed files with 6 additions and 5 deletions
|
@ -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)))
|
||||
})
|
||||
|
|
|
@ -122,6 +122,10 @@
|
|||
.taken-courses ul {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/*============ Education Alter Template =============*/
|
||||
.education-alt .degree-info {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue