Team:Goettingen/NoteBook/timeline

From 2013.igem.org

(Difference between revisions)
(Navigation)
 
(8 intermediate revisions not shown)
Line 5: Line 5:
p{font-size:11pt;line-height:1.2em}
p{font-size:11pt;line-height:1.2em}
-
.timeline-cont {display:none}
+
.timeline-cont {display:none;padding-bottom:40px}
.monat{    font-size: 20pt;
.monat{    font-size: 20pt;
Line 97: Line 97:
fbutton = [];
fbutton = [];
-
//与jq中的toggle函数相似,简化版本
 
-
function toggle(target){
 
-
  if(getComputedStyle(target,null).display == "none"){
 
-
            target.style.display = "block"
 
-
    } else {target.style.display = "none"}
 
-
}
 
//网页最下加载更多按钮
//网页最下加载更多按钮
Line 118: Line 112:
}
}
-
//更新页面,主要为1、重新抓取tlt,tlc,fbutton数组,定义onclick event;2、更新时间“线”长度
+
//更新页面,主要为1、重新抓取tlt,tlc,fbutton数组,定义onclick event;
function updatePage(){
function updatePage(){
-
   if(woche == 1){document.getElementById("loadmore").style.display = 'none'} else {document.getElementById("loadmore").style.display = 'block';}
+
   if(woche == -2){document.getElementById("loadmore").style.display = 'none'} else {document.getElementById("loadmore").style.display = 'block';}
   tlob = document.getElementsByClassName("tlob");
   tlob = document.getElementsByClassName("tlob");
   tlt = document.getElementsByClassName("timeline-title");
   tlt = document.getElementsByClassName("timeline-title");
Line 202: Line 196:
<li onclick="toggle(this.nextElementSibling || getnextElementSibling(this))">September</li>
<li onclick="toggle(this.nextElementSibling || getnextElementSibling(this))">September</li>
<ul style="display:none">  
<ul style="display:none">  
-
     <li><a onclick="getWeeklyJournal(16,this)">Week 19</a></li>
+
     <li><a onclick="getWeeklyJournal(19,this)">Week 19</a></li>
-
     <li><a onclick="getWeeklyJournal(15,this)">Week 18</a></li>
+
     <li><a onclick="getWeeklyJournal(18,this)">Week 18</a></li>
-
     <li><a onclick="getWeeklyJournal(14,this)">Week 17</a></li>
+
     <li><a onclick="getWeeklyJournal(17,this)">Week 17</a></li>
</ul>  
</ul>  
<li onclick="toggle(this.nextElementSibling || getnextElementSibling(this))">August</li>
<li onclick="toggle(this.nextElementSibling || getnextElementSibling(this))">August</li>
Line 232: Line 226:
</ul>
</ul>
<li onclick="toggle(this.nextElementSibling || getnextElementSibling(this))">May</li>
<li onclick="toggle(this.nextElementSibling || getnextElementSibling(this))">May</li>
-
<ul>
+
<ul style="display:none">  
     <li><a onclick="getWeeklyJournal(3,this)">Week 3</a></li>
     <li><a onclick="getWeeklyJournal(3,this)">Week 3</a></li>
     <li><a onclick="getWeeklyJournal(2,this)">Week 2</a></li>
     <li><a onclick="getWeeklyJournal(2,this)">Week 2</a></li>
Line 242: Line 236:
function getWeeklyJournal(n,obj){
function getWeeklyJournal(n,obj){
   //obj.style.marginLeft = '10px';
   //obj.style.marginLeft = '10px';
-
   woche = n - 3;
+
   n = n - 3;
 +
  woche = n;
   addw = "https://2013.igem.org/Team:Goettingen/NoteBook_w" + n + "?action=raw&ctype=text";
   addw = "https://2013.igem.org/Team:Goettingen/NoteBook_w" + n + "?action=raw&ctype=text";
   xmlhttp.open("GET",addw,false);
   xmlhttp.open("GET",addw,false);
Line 281: Line 276:
<div id="loadmore" class="bt" onclick="loadmore()">Load More ▼</div>
<div id="loadmore" class="bt" onclick="loadmore()">Load More ▼</div>
</div><!--close col-right>
</div><!--close col-right>
-
 
+
</div><!--close f-box-->
 +
</div><!--close body-->
</html>
</html>

Latest revision as of 12:52, 17 October 2013





The beast and its Achilles heel:

 A novel target to fight multi-resistant pathogenic bacteria



Load More ▼