Add education section (#168)

* Add education section

* Add education-alt section

* Add translations
This commit is contained in:
Emruz Hossain 2021-01-02 22:29:38 +06:00 committed by GitHub
parent 7c87605d45
commit 73c786b1c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 854 additions and 10 deletions

View file

@ -138,3 +138,27 @@ function toggleTOC() {
}
}
// Show more rows in the taken courses table
function showMoreCourses(elem) {
// find the courses
let courses = elem.parentNode.getElementsByClassName("course");
if (courses == null) {
return
}
// toggle hidden-course class from the third elements
for (var i = 0; i < courses.length; i++) {
if (i > 1 && courses[i].classList !== null) {
courses[i].classList.toggle("hidden-course");
}
}
// toggle the button text
let btnText = elem.innerText;
if (btnText == "Show More") {
elem.innerText = "Show Less";
} else {
elem.innerText = "Show More";
}
}