mirror of
https://github.com/bigchaindb/site.git
synced 2024-11-02 00:05:37 +01:00
19 lines
613 B
JavaScript
19 lines
613 B
JavaScript
|
|
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'
|
|
trigger.innerHTML = 'Show bios'
|
|
} else {
|
|
item.style.display = 'block'
|
|
trigger.innerHTML = 'Hide bios'
|
|
}
|
|
}
|
|
})
|
|
})
|