2017-08-22 00:50:41 +02:00
|
|
|
|
|
|
|
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
|
|
|
var trigger = document.getElementsByClassName('team__bio__trigger')[0]
|
|
|
|
|
var bio = document.getElementsByClassName('team__bio')
|
|
|
|
|
|
|
|
|
|
trigger.addEventListener('click', function(e) {
|
|
|
|
|
for (var i = 0; i < bio.length; ++i) {
|
|
|
|
|
var item = bio[i]
|
|
|
|
|
if (item.style.display == 'block') {
|
|
|
|
|
item.style.display = 'none'
|
2017-08-22 23:35:36 +02:00
|
|
|
|
trigger.innerHTML = '<span>+</span>Show bios'
|
2017-08-22 00:50:41 +02:00
|
|
|
|
} else {
|
|
|
|
|
item.style.display = 'block'
|
2017-08-22 23:35:36 +02:00
|
|
|
|
trigger.innerHTML = '<span>−</span>Hide bios'
|
2017-08-22 00:50:41 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|