1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-02 00:05:37 +01:00
site/_src/_assets/javascripts/page-about.js

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'
}
}
})
})