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', () => {
|
window.addEventListener('DOMContentLoaded', () => {
|
||||||
const els = [
|
const els = Array.from(document.getElementsByClassName('btn'));
|
||||||
document.getElementById('show-more-btn'),
|
|
||||||
document.getElementById('show-less-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 }) =>
|
el.addEventListener('click', ({ target }) =>
|
||||||
toggleCourseVisibility(target)))
|
toggleCourseVisibility(target)))
|
||||||
})
|
})
|
||||||
|
|
|
@ -122,6 +122,10 @@
|
||||||
.taken-courses ul {
|
.taken-courses ul {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hidden {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
/*============ Education Alter Template =============*/
|
/*============ Education Alter Template =============*/
|
||||||
.education-alt .degree-info {
|
.education-alt .degree-info {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue