Team:Goettingen/NoteBook
From 2013.igem.org
Line 17: | Line 17: | ||
}); | }); | ||
+ | |||
+ | function updatePage(){ | ||
+ | spacing = document.getElementsByClassName("spacing")[0]; | ||
+ | tlob = document.getElementsByClassName("tlob"); | ||
+ | tlt = document.getElementsByClassName("timeline-title"); | ||
+ | spacing.style.height = tlob[tlob.length -1].offsetTop - spacing.offsetTop + 30 + 'px'; | ||
+ | for(i=0;i<tlt.length;i++){ | ||
+ | tlt[i].onclick = function(){toggle(this.nextElementSibling); | ||
+ | spacing.style.height = tlob[tlob.length -1].offsetTop - spacing.offsetTop + 30 + 'px';}; | ||
+ | tlt[i].title = "Click to fold/extend";} | ||
+ | } | ||
var xmlhttp; | var xmlhttp; |
Revision as of 07:37, 18 August 2013