jQuery(document).ready(function($) {
$(".team-member").on("click", function() {
// Get data from the clicked team member
var name = $(this).data("name");
var description = $(this).data("description");
var linkedin = $(this).data("linkedin");
// Update the left container
$("#member-name").text(name);
$("#member-bio").text(description);
// Update LinkedIn button & show it
if (linkedin) {
$("#linkedin-button").attr("href", linkedin).show();
} else {
$("#linkedin-button").hide();
}
});
});