Line 1: | Line 1: | ||
{{TecCEM/Menu}} | {{TecCEM/Menu}} | ||
+ | {{TecCEM/TeamCss}} | ||
+ | {{TecCEM/BubblesTemplate}} | ||
+ | {{TecCEM/header_generator}} | ||
<html> | <html> | ||
− | < | + | <script type="text/javascript"> |
− | + | ||
− | + | ||
− | + | ||
− | + | /* --------------------- WE DECLARE THE ARRAYS WITH THE ---------------------- | |
− | + | ----------------------- INFORMATION OF THE TEAM MEMBERS --------------------- */ | |
− | + | var teamCollaboratorsElems = document.getElementsByClassName("collaborator_image"); | |
− | + | ||
− | + | ||
− | + | var teamCollaboratorsFullNames = new Array(); | |
− | + | teamCollaboratorsFullNames.push("Saul Higareda"); | |
− | + | teamCollaboratorsFullNames.push("Marianela Contreras Dominguez"); | |
− | + | teamCollaboratorsFullNames.push("Jennifer Riva Palacios"); | |
− | + | teamCollaboratorsFullNames.push("Jose Angel Del Angel"); | |
− | + | teamCollaboratorsFullNames.push("Carlos Espejel"); | |
− | + | //5 | |
+ | |||
+ | var teamCollaboratorsJobs = new Array(); | ||
+ | teamCollaboratorsJobs.push("Poll design and excecution"); | ||
+ | teamCollaboratorsJobs.push("Team Image Leader"); | ||
+ | teamCollaboratorsJobs.push("Protocol and notebook anotations"); | ||
+ | teamCollaboratorsJobs.push("Web page Designer"); | ||
+ | teamCollaboratorsJobs.push("Web page Designer"); | ||
+ | //12 | ||
+ | |||
+ | var teamMembersMajors = new Array(); | ||
+ | teamMembersMajors.push("..."); | ||
+ | teamMembersMajors.push("Communications Bacheularate"); | ||
+ | teamMembersMajors.push("..."); | ||
+ | teamMembersMajors.push("Robotics and Digital Systems Engineering"); | ||
+ | teamMembersMajors.push("B.S. in Computer Science"); | ||
− | + | ||
− | + | var teamMembersPhotosArray = new Array(); | |
− | + | teamMembersPhotosArray.push("https://static.igem.org/mediawiki/2021/e/e5/T--TecCEM--TeamMembers_Francisco.png"); | |
− | + | teamMembersPhotosArray.push("https://static.igem.org/mediawiki/2021/c/c7/T--TecCEM--TeamMembers_Carlo.png"); | |
− | + | teamMembersPhotosArray.push("https://static.igem.org/mediawiki/2021/6/61/T--TecCEM--TeamMembers_Nadia.png"); | |
+ | teamMembersPhotosArray.push("https://static.igem.org/mediawiki/2021/1/16/T--TecCEM--TrialImages-man.jpeg"); | ||
+ | teamMembersPhotosArray.push("https://static.igem.org/mediawiki/2021/b/b2/T--TecCEM--TeamMembers_Nayelhi.png"); | ||
− | + | ||
− | + | ||
+ | var teamCollaboratorsAttributions = new Array(); | ||
+ | teamCollaboratorsAttributions.push("..."); | ||
+ | teamCollaboratorsAttributions.push("..."); | ||
+ | teamCollaboratorsAttributions.push("..."); | ||
+ | teamCollaboratorsAttributions.push("..."); | ||
+ | teamCollaboratorsAttributions.push("..."); | ||
− | + | ||
− | + | ||
+ | |||
+ | var teamMembersLinkedin = new Array(); | ||
+ | teamMembersLinkedin.push("https://www.linkedin.com/"); | ||
+ | teamMembersLinkedin.push("https://www.linkedin.com/"); | ||
+ | teamMembersLinkedin.push("https://www.linkedin.com/"); | ||
+ | teamMembersLinkedin.push("https://www.linkedin.com/"); | ||
+ | teamMembersLinkedin.push("https://www.linkedin.com/"); | ||
− | + | ||
− | + | ||
+ | /* =========================================================================== | ||
+ | ============================================================================ */ | ||
+ | |||
+ | |||
+ | |||
+ | function person_data(name, full_name, job, major, description, linkedin, i){ | ||
+ | var teamTableDiv = document.getElementsByTagName('body')[0]; | ||
+ | var div = document.createElement('div'); | ||
+ | var cross = document.createElement('img'); | ||
+ | var image = document.createElement('img'); | ||
+ | var content = document.createElement('p'); | ||
+ | var headerTable = document.createElement("table"); | ||
+ | |||
− | < | + | headerTable.style.width = "90%" |
+ | headerTable.innerHTML = "\ | ||
+ | <tr>\ | ||
+ | <td style='width:60%; border:none;'>\ | ||
+ | <p style='font-weight:bold; font-size:25px; font-family:\"Nunito\", sans-serif;margin-top:0px; margin-bottom:0px;'>" + full_name + "</p>\ | ||
+ | <p style='font-size:15px; font-style: italic; margin-top:0px; margin-bottom:0px;'>" + job + "</p>\ | ||
+ | </td>\ | ||
+ | \ | ||
+ | <td style='width:10%; border:none;'>\ | ||
+ | <a href=" + linkedin + ">\ | ||
+ | <img style='width:60%; filter: grayscale(100%); opacity:0.5; margin-left:25%; ' src='https://static.igem.org/mediawiki/2021/e/e2/T--TecCEM--SocialMediaLogo_linkedin.png'>\ | ||
+ | </a>\ | ||
+ | </td>\ | ||
+ | <td style=' width:30%; border:none;'>\ | ||
+ | <p style='font-weight:bold; font-size:25px; font-family:\"Nunito\", sans-serif;margin-top:0px; margin-bottom:0px;'>" + "Major:" + "</p>\ | ||
+ | <p style='font-size:15px; font-style: italic; margin-top:0px; margin-bottom:0px;'>" + major + "</p>\ | ||
+ | </td>\ | ||
+ | </tr>"; | ||
+ | headerTable.style.transform = "translate(-50%,0%)"; | ||
+ | headerTable.style.marginTop = "-10%"; | ||
+ | headerTable.style.marginLeft = "50%"; | ||
+ | headerTable.style.border = "none"; | ||
+ | headerTable.style.background = "transparent"; | ||
+ | |||
+ | content.innerHTML = description; | ||
+ | content.style.marginLeft = "7.5%"; | ||
+ | content.style.marginRight = "7.5%"; | ||
+ | /*content.style.width = "80%";*/ | ||
+ | content.style.marginBottom = "2%"; | ||
+ | content.style.fontFamily = "'Roboto', sans-serif" | ||
+ | content.style.fontSize = "15px"; | ||
+ | content.style.color = "black"; | ||
− | + | cross.src = "https://static.igem.org/mediawiki/2021/c/cc/T--TecCEM--CrossIcon.png"; | |
+ | cross.style.width = "40px"; | ||
+ | cross.style.height = "40px"; | ||
+ | cross.style.marginTop = "10px"; | ||
+ | cross.style.marginLeft = "10px"; | ||
+ | cross.style.display = "block"; | ||
+ | cross.onclick = function() {div.parentNode.removeChild(div)}; | ||
− | + | image.style.width = "20%"; | |
− | + | image.src = teamMembersPhotosArray[i]; | |
− | + | image.style.marginLeft = "50%"; | |
− | + | image.style.transform = "translate(-50%,-60%)"; | |
− | + | image.style.borderRadius = "100%"; | |
− | + | image.style.display = "block"; | |
− | + | image.style.border = "solid 5px #3A9300"; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | div.style.top = "60%"; | ||
+ | div.style.left = "50%"; | ||
+ | div.style.transform = "translate(-50%,-50%)"; | ||
+ | div.style.backgroundColor = "#53D100"; | ||
+ | div.style.borderRadius = "20px" | ||
+ | div.style.position = "fixed"; | ||
+ | div.width = '100%'; | ||
+ | div.style.color = "white"; | ||
+ | div.style.fontFamily = "sans-serif"; | ||
+ | div.style.zIndex = "200"; | ||
+ | |||
+ | div.appendChild(cross); | ||
+ | div.appendChild(image); | ||
+ | div.appendChild(headerTable); | ||
+ | /*div.appendChild(header); */ | ||
+ | div.appendChild(content); | ||
+ | team_table_div.appendChild(div); | ||
} | } | ||
− | + | function grow(elem){ | |
− | + | elem.style.transform = 'scale(1.1)'; | |
} | } | ||
− | + | ||
− | + | function shrink(elem){ | |
− | + | elem.style.transform = 'scale(1.0)'; | |
} | } | ||
− | + | ||
− | + | ||
− | + | $(window).scroll(function(){ | |
− | + | var f = $(document).scrollTop(); | |
+ | if(f>=650){ | ||
+ | if(f <= window.pageYOffset + document.getElementsByClassName("table_title")[1].getBoundingClientRect().top){ | ||
+ | document.querySelector(".tips").classList.add("tips_hidden"); | ||
+ | } | ||
+ | else{ | ||
+ | document.querySelector(".tips").classList.remove("tips_hidden"); | ||
+ | } | ||
+ | }else{ | ||
+ | document.querySelector(".tips").classList.remove("tips_hidden"); | ||
} | } | ||
− | + | }); | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | |||
− | function | + | window.onload = function(){ |
− | + | generate_header("The team", "https://static.igem.org/mediawiki/2021/9/96/T--TecCEM--TeamPhotos_4.png", "#FDE68A", "#0099ff", "#B1E7EF" ); | |
− | + | //alert(teamMembersPhotosArray.toString()); | |
+ | //alert(teamMembersElems.toString()); | ||
+ | var teamMembersNameBlock = document.getElementsByClassName("person_name_tb"); | ||
− | + | for (var i = 0; i < teamCollaboratorsElems.length; i++) { | |
− | + | let x = i; // we make a copy of i to avoid reference to last i value | |
− | + | teamCollaboratorsElems[i].src = teamMembersPhotosArray[x]; | |
− | + | teamCollaboratorsElems[i].onclick = function() {person_data( teamCollaboratorsFullNames[x], teamCollaboratorsFullNames[x] , teamCollaboratorsJobs[x] , teamCollaboratorsMajors[x], teamCollaboratorsAttributions[x], teamMembersLinkedin[x] , x );}; | |
− | + | teamCollaboratorsElems[i].onmouseover = function() {grow(teamCollaboratorsElems[x])}; | |
− | + | teamCollaboratorsElems[i].onmouseleave = function() {shrink(teamCollaboratorsElems[x])}; | |
− | + | teamMembersNameBlock[i].innerHTML = teamCollaboratorsFullNames[x]; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
+ | |||
+ | var numOfBubbles = 8; | ||
+ | console.log("numOfBuublesDeclaredCorrectly"); | ||
− | + | for (j = 0;j < numOfBubbles;j++){ | |
− | + | var bubble_size = generateRandomNumber(20,60); | |
− | + | var left = generateRandomNumber(10, 70); | |
− | + | var speed_percentage = generateRandomNumber(70,100); | |
− | + | generate_bubble(bubble_size, left, speed_percentage); | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | } | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | </script> | |
− | + | <div class="blue_body bubbles_window" style="width:100vw;"> | |
− | + | ||
− | + | ||
− | + | <!-- ------------- LANDING IMAGE --------------------> | |
− | + | <div class="overlay_container landing_image_div"> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | </div> | ||
+ | |||
+ | |||
+ | |||
+ | <h2 class="table_title" style="margin-left:5%; font-family:'Nunito',sans-serif;">Collaborators</h2> | ||
+ | |||
+ | <!-- ------------- THE TEAM TABLE --------------------> | ||
+ | <div id="collaborators_table_div"> | ||
+ | <table class="full_screen_table" style="border:none;"> | ||
+ | <tr> | ||
+ | <td class="td_person_table" style="border:none;"><div class="collaborator_image_div" style="inline_block"><img class="collaborator_image"><p class="person_name_tb" style="font-family:'Roboto', sans-serif; color:white; font-size:30px; text-align:center;"></p></div></td> | ||
+ | <td class="td_person_table" style="border:none;"><div class="collaborator_image_div" style="inline_block"><img class="collaborator_image"><p class="person_name_tb" style="font-family:'Roboto', sans-serif; color:white; font-size:30px;text-align:center;"></p></div></td> | ||
+ | <td class="td_person_table" style="border:none;"><div class="collaborator_image_div" style="inline_block"><img class="collaborator_image"><p class="person_name_tb" style="font-family:'Roboto', sans-serif; color:white; font-size:30px;text-align:center;"></p></div></td> | ||
+ | </tr> | ||
+ | |||
+ | <tr> | ||
+ | <td class="td_person_table" style="border:none;"><div class="collaborator_image_div" style="inline_block"><img class="collaborator_image"><p class="person_name_tb" style="font-family:'Roboto', sans-serif; color:white; font-size:30px; text-align:center;"></p></div></td> | ||
+ | <td class="td_person_table" style="border:none;"><div class="collaborator_image_div" style="inline_block"><img class="collaborator_image"><p class="person_name_tb" style="font-family:'Roboto', sans-serif; color:white; font-size:30px;text-align:center;"></p></div></td> | ||
+ | <td class="td_person_table" style="border:none;"><div class="collaborator_image_div" style="inline_block"><img class="collaborator_image"><p class="person_name_tb" style="font-family:'Roboto', sans-serif; color:white; font-size:30px;text-align:center;"></p></div></td> | ||
+ | |||
+ | </tr> | ||
+ | |||
+ | </table> | ||
+ | </div> | ||
+ | |||
+ | |||
+ | |||
+ | <!--------------------- BREAKS FOR FOOTER TEMPLATE ----------------------> | ||
+ | <br><br><br><br> | ||
+ | <br><br><br><br> | ||
+ | <br><br><br><br> | ||
+ | <br><br> | ||
+ | |||
+ | |||
+ | </div> | ||
</html> | </html> | ||
+ | |||
+ | {{TecCEM/Footer}} |
Revision as of 01:04, 17 October 2021
Collaborators