Line 5: | Line 5: | ||
<html> | <html> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
+ | var cardShowing = false; | ||
/* --------------------- WE DECLARE THE ARRAYS WITH THE ---------------------- | /* --------------------- WE DECLARE THE ARRAYS WITH THE ---------------------- | ||
Line 307: | Line 308: | ||
div.style.fontFamily = "sans-serif"; | div.style.fontFamily = "sans-serif"; | ||
div.style.zIndex = "200"; | div.style.zIndex = "200"; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
div.appendChild(cross); | div.appendChild(cross); | ||
Line 327: | Line 316: | ||
div.appendChild(footerTable); | div.appendChild(footerTable); | ||
team_table_div.appendChild(div); | team_table_div.appendChild(div); | ||
+ | |||
+ | document.addEventListener("click", (evt) => { | ||
+ | var flyoutElement = div; | ||
+ | let targetElement = evt.target; // clicked element | ||
+ | |||
+ | if (targetElement != flyoutElement && cardShowing) { | ||
+ | div.parentNode.removeChild(div); | ||
+ | cardShowing = false; | ||
+ | return; | ||
+ | } | ||
+ | }); | ||
+ | |||
+ | cardShowing = true; | ||
} | } |
Revision as of 01:50, 22 October 2021
The team
Advisors
name |
name |
Principal Investigators
name |
name |
Funny moments
Tip
Click on the photo of a team member