Difference between revisions of "Team:Humboldt Berlin/Notebook"

 
(18 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Humboldt_Berlin}}
 
{{Humboldt_Berlin}}
 
<html>
 
<html>
 +
  
 
<div class="has-animations">
 
<div class="has-animations">
Line 94: Line 95:
  
 
       <div class="full-height fixed-header-content notebook">
 
       <div class="full-height fixed-header-content notebook">
<div class="width-limit padding-container" style="margin-top:5vw;margin-bottom:5vw">
+
<div class="width-limit padding-container" style="margin: 50px 0;">
<img src="https://static.igem.org/mediawiki/2019/7/71/T--Humboldt_Berlin--Notebook_Timeline.png" alt="Our stuffed calendar"/></br>
+
<img src="https://static.igem.org/mediawiki/2019/e/e3/T--Humboldt_Berlin--notebook_final.png" alt="our stuffed calendar"/></br>
 
</div>
 
</div>
 
           <section class="width-limit">
 
           <section class="width-limit">
Line 689: Line 690:
 
      
 
      
 
             function setFixedElements() {
 
             function setFixedElements() {
                 if (window.pageYOffset >= (window.innerHeight + 100)) {
+
                 var timelineOffset = document.querySelector('.timeline').getBoundingClientRect().top;
 +
 
 +
                if (timelineOffset < 150) {
 
                     infobox.classList.add('fixed')
 
                     infobox.classList.add('fixed')
 
                 } else {
 
                 } else {
Line 730: Line 733:
 
      
 
      
 
                 const activeElements = document.querySelectorAll('.active-timeline-el');
 
                 const activeElements = document.querySelectorAll('.active-timeline-el');
                 const lastActive = activeElements[activeElements.length - 1]
+
                 var lastActive = activeElements[activeElements.length - 1];
 +
                if (lastActive === undefined) {
 +
                    lastActive = document.querySelectorAll('.timeline > div.visible')[0];
 +
                }
 
      
 
      
 
                 if (lastActive !== undefined) {
 
                 if (lastActive !== undefined) {

Latest revision as of 21:47, 21 October 2019